GDevelopApp / GDevelop-extensions

Repository of behaviors, actions, conditions and expressions to be used in GDevelop for creating games
https://gdevelop.io
MIT License
131 stars 52 forks source link

Pets, (follow object) Flying & On ground #264

Closed VegeTato closed 2 years ago

VegeTato commented 2 years ago

Description

Pets extension1

This extension will make the objects follow the Leader(selected object) in a smooth way. For example: a cute cat to follow you or For example: a cute bird to follow you

Useful for platformer games to have a pet that can help you in your journey ❀️

You can test the extension here: https://games.gdevelop-app.com/game-4a878562-8e47-4a90-a1e8-bc5ec89b6ebf/index.html

Version 1.0.0

Pets extension[Follow object, Flying] (Part 1/2)🐱🐢🐦 Extension conditions[OR]: -Follow player when collide -Follow player in range -follow player out of range

Extension action: Follow object|speed|DistanceX|DistanceY|

Extension action options [Yes/No]: -Flip the pet direction when the followed object flip? -Flip the pet when the followed object flip? -Make pet fly around while the followed object is idle? -Flip the pet while in idle, if he is on right or left the followed object?

-Pet swapping idle position speed -Time before the pet goes to idle position

Version 2.0.0

Pets extension[Follow object, On ground] (Part 2/2)🐱🐢🐦 Extension conditions[OR]: -Follow player when collide -Follow player in range -follow player out of range

Extension action: Follow object|speed|DistanceX

Extension action options [Yes/No]: -Flip the pet direction when the followed object flip? -Flip the pet when the followed object flip? -Make pet fly around while the followed object is idle? -Flip the pet while in idle, if he is on right or left the followed object?

-Pet timer swapping idle positions speed -Time before the pet goes to idle position -Pet swapping idle position speed

Also updated the Pets extension[Follow object, Flying] -Added the option: -Pet swapping idle position speed

Version 3.0.0

-Added a new action to make flying pets avoid obstacles -Fixed few parameters sentences

How to use the extension

you need 2 objects: 1-platformer object 2-pet object

Events > new action > Select the pet object > player object > follow speed > distance between them X > distance between them Y > check the options as you like (Flip/idle/...etc) and you are ready !

Checklist

Example

Pets extension example.zip

Extension file

Pets extension V3.0.0.zip

github-actions[bot] commented 2 years ago

Hi @VegeTato! πŸ‘‹ This submission has been moved to a PR as part of our submission pipeline. Please continue the submission process on this page. Thanks!