I'm using physics object as my platformer player, so I use the impluse to make player jump. the problem is, player can jump when ever impulse is there. I want make player only able to jump when landed. any ideas?
Why not just use the platform behavior? Is there a reason you are using physics instead?
Develop games in your browser. Powerful, performant & highly capable.
Make a variable and add 1 whenever you jump . and make a condition that blocks you whenever the variable is egal to 1 and make it 0 when you get on the ground
Yes I have tried the variable way. I have a variable IsLanded set to 0 default, when landed(collided with ground object) set to 1, but then how do I set to 0 when in the mid air? I can't use Else event, and I can't invert the collision event:/