hey every one…
I made a game in my university project of the classic nokia game Bounce, i have been able to do every thing in the game except make the ball jump…i am using applyForce to move the ball, so i was thinking to make the ball jump using the same technique…heres the code snippet
[lua]–created the ball n everything
local funtion jumpLeft(e)
if(e.phase == “began”)
ball:applyForce(0,-100,ball.x,ball.y);
end
end[/lua]
using this i am able to make the ball jump but it also jumps or apply the force even when the ball is in the air…what i want to do is that the user could not jump when the ball is in the air…until or unless the ball hits the ground, then the user should be able to jump…any idea how can i achieve that… [import]uid: 48549 topic_id: 10003 reply_id: 310003[/import]