Double Jump Issue HELP

kajutokajuto Member Posts: 314
edited April 2012 in Miscellaneous
Hi there everyone! i recently in my project i did the actor jump infinite time, every time i pressed the jump button, but how can i limit it to maximum 2 jumps, not 3, nor 4, ect....

Hero Actor:

Att game.jump.button is true
Att game.doubleJump less equal than 2

Change Att
motionlinearvelocityY to 450

Jump Button:
when Touch is pressed
when Mouse Position is inside

Change Att
game.jump.button to true

Otherwise:
Change Att
game.jump.button to false

i want the hero actor to jump maximum 2 time ...Thanks in advance

Answers

Sign In or Register to comment.