How do you limit the number of jumps your character can do?

For example right now my character can jump in the air as many times as you want and it flys off the map. What Im trying to say is how do you limit the number of times you can jump before touching the ground again.

Add a switch in between the Jump Button and the Impulse and turn it on. When the switch activates, make the switch turn off, then it turns on again when the object collides with another object.

Sorry I just started Can you send a screenshort to show me how
-Thanks

Screenshot 2020-05-19 at 8.17.04 AM

Thanks Mate

No problem!

i can set the limit to whet ever i want with a number and it is quick and easy.

send screen shot

https://flowlab.io/game/view/1430379

link to how to make a better version forum.flowlab.io/discussion/9053/how-to-make-a-multi-jump-limit#latest