Hello,
I’m making game like Doodle Jump, but I can’t make player jump when it touches the platform/ground.applyForce doesn’t work.Can you help to solve this please?
[lua]local function jumpForce( event )
if (player.y-player.height) == (ground1.y+ground1.height) then
player:applyForce( 0, 11111, player.x, player.y )
if (player.y-player.height) == (block.y+block.height) then
player:applyForce( 0, 11111, player.x, player.y )
end
end
end
player:addEventListener(“enterFrame”, jumpForce)[/lua]
Thanks! [import]uid: 49851 topic_id: 8850 reply_id: 308850[/import]