Como fazer o personagem dar um "Wall Jump"



4,435 visits, 7,273 views



This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

How to make a character "Wall Jump"

Adding the behavior

Click on your sprite of your character, then "Add / Edit - Behaviors," and add the behavior of motion "Platform".

(Your Character)> Add / Edit - Behaviors> "+"> Platform


Go to the Event Sheet adcione the current phase of the behavior of an event deck your character:

Sheet Event> New Event> (Your Character)> "Is wall by"> "Left"

After that duplicate this event and change his option "Left" to "Rigth"

(Ctrl + C then Ctrl + V)

Add the "Keyboard" object wait for 5 seconds, return to the Event Sheet. Là add a new condition:

Add action> Keyboard> On key pressed> "Click to choose"> Press the up key> Ok

Copy this condition in another event. After adcione other action:

Add action> (Your character)> Set Vector X> -500

Add action> (Your character)> Set Vector Y> -500

Copy the next event and ready, his "Wall Jump" can be used in your games! Remember, to be used in all stages, these events should be adiconados on all sheets event!

Good luck in building your game! : D


  • Order by
Want to leave a comment? Login or Register an account!