Hi, please help me 
I try make character jump by CHARACTER JUMP - EXAMPLE ,but this example has a few “bugs”.
Some “bugs”:
- If I touch more times character jump still up and up.
- If I hold finger-mouse on display character jump only one. ( I need that character jump one and if character collision with grass-ground then next jump etc… )
I tried this modification ,but It didn’t help me 
[lua]-----------------------------------------------------------------------------------------
– main.lua
display.setStatusBar( display.HiddenStatusBar )
local physics = require “physics”
local onAir = false
physics.start()
local background = display.newImage( “background.jpg” )
local ground = display.newImage( “ground.png” )
ground:setReferencePoint( display.BottomLeftReferencePoint )
ground.x, ground.y = 0, 320
ground.name = “ground”
local groundShape = { -240,-20, 240,-20, 240,20, -240,20 }
physics.addBody( ground, “static”, { friction=1.0, density=1.0, bounce=0, shape=groundShape } )
local character = display.newImage( “character.png” )
character.x = 70
character.y = 234
physics.addBody( character, { friction=1.0, density=2.0, bounce=0, radius=35 } )
character.isFixedRotation = true
local function onScreenTouch( event )
if (event.phase == “began”) then
tmr = timer.performWithDelay( 1, function()
if(onAir == false) then
onAir = true
character:applyForce( 0, -2500, character.x, character.y )
end
end, 0)
end
if (event.phase == “ended”) then timer.pause(tmr) end
return true
end
Runtime:addEventListener( “touch”, onScreenTouch )
local function collis( event )
if (event.phase == “began” and event.other.name == “ground”) then
onAir = false
end
end
character.collision = collis
character :addEventListener( “collision”, machio )[/lua] [import]uid: 163161 topic_id: 29721 reply_id: 329721[/import]
[import]uid: 163161 topic_id: 29721 reply_id: 119299[/import]