Problem with jump forward

physics.addBody( Chr, "dynamic", {bounce=0} ) Runtime:addEventListener( "key",function(event) if event.phase=="up" then Chr:setSequence("Idle") Chr:play() direction="noMove" elseif event.phase=="down" then direction=event.keyName print(direction) end end) local function walkPerson(event) if direction =="d" then Chr.xScale = 1 Chr:setSequence("Run") Chr:play() Chr.x = Chr.x + 0.1 elseif direction =="a" then Chr.xScale = - 1 Chr:setSequence("Run") Chr:play() Chr.x = Chr.x - 0.1 elseif direction=="w" then Chr:setLinearVelocity(30,-300) end end Runtime:addEventListener("key", walkPerson);

This is my second day in Corona sdk. Jumping works well but there something wrong when I press w My “Chr” moves forward when he landed he must stop but he keep slipping until he crash with static object I don’t think something wrong with my code What should I do

Add friction to the character and floor.

Thanks for help I made it 

Add friction to the character and floor.

Thanks for help I made it