Add a jump button

How do I add the jump button and make it work (I’m using the engine on the phone)

Because you have given scant information, I’m assuming it’s a touch game (not one with the mouse), and that it’s a platformer with a platformer character. In which case:

  1. Add a button sprite, place it in the scene.
  2. Add an event that detects new touch and checks the touch is on the button sprite, with actions to simulate the jump key pressed.

I do not know how to do the second step. Can you take a picture for me and mark the place you are going in the pictures, or give me a link to a clip explaining the matter, thank you

Search for button on this page - there are normal buttons and multitouch button example.

And here’s an example on how to do it..

1 Like