I want to make a infinity runner, and i want to make it so if i hold the screen the player will jump higher. I tried sustain jump, but it only works when the default controls are enabled, for my game i need them off. Any ideas?
Develop games in your browser. Powerful, performant & highly capable.
The Platform behavior has an setting called "jump sustain" for the exact behavior you're looking for.
Everytime you "simulate jump" it will work, even if not using the default controls. The problem will be if you associate it to an "On" type event, since these events are performed once. You must call it from a "Is" type event.
On key "Z" pressed | Player Simulate Jump
On mouse clicked |
Will not work.
Key "Z" is down | Player Simulate Jump
Mouse is down |
Hope this helps. Cheers!