Forum Discussion

KelvinLabos's avatar
KelvinLabos
Community Member
2 months ago

Object continuously jump upward when pressing a key

How can I set up a continuous upward movement for an object when a key is pressed, similar to the jump mechanic in Flappy Bird, where the object moves up as long as the key is held down?

  • You can just select the object and create a motion path animtion directed upward. Make it short and brief (e.g., 25px long, 0.25 sec duration). Change the settings to no direction easing, and make it relative to starting position. Create a move trigger attached to the keypress you desire and executing the motion path on the movable object.