Quote:
Originally Posted by xDrugz
Hook player keys and detect when he press space key.
Then increase your variable by 1 every time he uses space key.
|
Better way
PHP Code:
#define IN_JUMP (1<<1)
then check if velocity[2] is more than 1.0 and less than -1.0, this will means that player is in air.