Jumping on mobile

I’m trying to make the character jump in a mobile version of a game. I can’t figure out how to stop him from jumping while in the air. He should only be able to jump after he hits a solid block. How can I do this? Here is the link: http://www.flowlab.io/game/play/358028

Look at the “run and jump” default bundle in the bundle section of the behaviors. That has a switch that prevents double-jumps

http://www.flowlab.io/game/play/225037 copy this