You need to add a variable called canJump
Then,make an actor called platform,who is Filled Region.
Key down/Key for jump/Disable(on repeat)/script editor
if(canjump==1) // if he has collided with the floor
{yvelocity =-18; //jump
canjump=0;} // and he can't jump again until he touches the floor
Then draw actor/script editor:
yvelocity +=1;
After:
Collision/Top side of platform/Repeat this event Yes/Physical response/Event actor 0
Finally:
Collision/Top side of platform/Repeat No/script editor
canjump=1; // the variable canjump represents the ability to jump. if it's 1, you can jump.
//if it's 0, u can't jump
// in this case the platform is the invisible blue frame at the bottom.
Yo! It is so long,but this is working!
