help!!!!!!!!!!!!!! panic!!!!!!!!!!!!!!! kidding
so he will just jump from the air?
ok, first disable the repeat event when you press the button (if you haven't done so yet)
then use if-conditions. it's easy:
character -> collision on top side of platform -> script editor
- Code: Select all
canjump = 1; //canjump is a variable that you'll make yourself
and then when you press the "jump" button:
- Code: Select all
if(canjump == 1)
{*your jump action*;
canjump = 0;}
so this basically means: he will jump if he has stood on the ground before and when he's jumped, he will disable that.
if he touches the ground again, he'll again be able to jump.
hope that helped...