Object in midair - how to detect?

Hi,

My game is a platformer, and when he lands on ground, platforms he can jump. But if he falls down from a platform i still can jump since the fact that I registered a collision with the platform and flag for that.

So my question, how can I determ when he is in “midair” and just falling - to avoid another jump sequence.

Any suggestions, or hints?

Joakim [import]uid: 81188 topic_id: 20780 reply_id: 320780[/import]

Great, I asked this before and got the answer :slight_smile:

http://developer.anscamobile.com/forum/2011/12/17/how-should-i-get-my-brain-startup

[import]uid: 81188 topic_id: 20780 reply_id: 81718[/import]