This site requires JavaScript, please enable it in your browser!
Greenfoot back
DemonsWhiteSoul
DemonsWhiteSoul wrote ...

2014/12/30

one-click jump

DemonsWhiteSoul DemonsWhiteSoul

2014/12/30

#
In the game im making, the character (Player1) jumps. problem is that if you hold the key down the character will just keep going up. is there a way to make it when you press/hold a key down you ONLY jump once? plz help
danpost danpost

2014/12/30

#
Each act cycle, you must determine if the actor is standing on anything or not. Allow jumping only if standing on something. My Jump and Run Demo w/Moving Platform scenario has viewable code. Run the scenario and click on the 'WHO' button; then, scroll to the bottom of the page to see an example of how to accomplish it.
You need to login to post a reply.