Noob Attribute issue - Detecting when "In Air"
AfterBurnett
Member Posts: 3,474
Hi guys,
I have an odd issue. Basically, I want my player to do two different things, one when on the ground, and another when in the air.
I have set up an attribute called "InAir" and told the player object to only move when in air is false. I also have a rule that says "when player collides with ground objects, change attribute InAir to false", otherwise change to true.
The problem is, when the character hits the ground after doing a jump, it doesn't change back to "InAir FALSE".
ALSO, I want the right button to move the character right when on the ground but rotate when in the air... I can only seem to get this working if I release the button... which is annoying as I want to be able to hold the button down and switch from moving to rotating...
Any ideas? basically, this stops me being able to control my character if he leave the ground at all, even when rolling up ramps as for a split second he's in the air... very annoying and it all should work...
Probably missing something basic....
I have an odd issue. Basically, I want my player to do two different things, one when on the ground, and another when in the air.
I have set up an attribute called "InAir" and told the player object to only move when in air is false. I also have a rule that says "when player collides with ground objects, change attribute InAir to false", otherwise change to true.
The problem is, when the character hits the ground after doing a jump, it doesn't change back to "InAir FALSE".
ALSO, I want the right button to move the character right when on the ground but rotate when in the air... I can only seem to get this working if I release the button... which is annoying as I want to be able to hold the button down and switch from moving to rotating...
Any ideas? basically, this stops me being able to control my character if he leave the ground at all, even when rolling up ramps as for a split second he's in the air... very annoying and it all should work...
Probably missing something basic....
Comments
The odd thing is, when I hit a ramp I can no longer accelerate but when I roll back down and hit the ground I can accelerate again... roll a bit further and I can't accelerate at all... scrwing with my head!
http://gamesalad.com/game/play/81092
Could you please tell me what you did?