Side scroller

im working on a side scroller for a friend and im having a problem with the jumping…well I when I jump and push over with the motion set on line V witch keeps it from going thro walls but if it its in the air it flotes untel I let go??

Make it only activate if your either a ray or collision sensor is positive.

the ray would have to be pointing down of course. The goal is to only trigger the jump when the player is touching the ground.