how do you make an object "double jump"? upon pressing a key the object would jump and pressing the key again while the object is jumping would cause it to jump again or "double jump".
Printable View
how do you make an object "double jump"? upon pressing a key the object would jump and pressing the key again while the object is jumping would cause it to jump again or "double jump".
[events:32]
*[obj_mousekb] Upon pressing key "Ctrl"
-[obj_active] (Active) : Select movement Movement #1 (number 1)
[/events]
how would I limit it to only 2 jumps? if I keep pressing the jump key the character keeps jumping.
Use a counter to keep track of how many times the event above has been triggered, add the condition "+ Counter is below 2" and reset the counter to 0 when the player lands.
I'm obviously missing something completely obvious... I set it up exactly as pictured but it doesn't work?
It assumes Ctrl is the jump key. Having "Player 1 fire" would be better (e.g. it could be Shift).Quote:
Originally Posted by RayMarble
See http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=95444&Main=9544 4
Sidenote: This topic was created in 2006.
Thanks!!! (says a voice from the time machine XD...)