Noob Attribute issue - Detecting when "In Air"

AfterBurnettAfterBurnett Member Posts: 3,474
edited November -1 in Working with GS (Mac)
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....

Comments

  • AfterBurnettAfterBurnett Member Posts: 3,474
    Really stuck here... no reason why this shouldn't work...
  • AfterBurnettAfterBurnett Member Posts: 3,474
    I can't get it to work. I've also tried "when right key is pressed and overlaps tag ground, accelerate" it works but the rule doesn't reset when it hits the ground... so I can only accelerate once.

    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!
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Could this be a GS issue? Perhaps I need to reinstall? Seems to be absolutely no reason why something this simple wouldn't work: "Only move if contacting ground and key is pressed". Only works once! Never had this much trouble working something so simple out before... I don't get it...
  • victorkin11victorkin11 Member Posts: 251
    I did a fast test, but i don't have this issue.

    http://gamesalad.com/game/play/81092
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Aargh! This is driving me nuts. My Mac Mini's airport decided to doie today so I can't check your example as every time I hit the link on my PowerBook (one I'm using now) Safari shuts down as it's a PPC system.

    Could you please tell me what you did?
  • AfterBurnettAfterBurnett Member Posts: 3,474
    I should add, the ramps I'm jumping off are just rotated squares... not that that should make a difference...
  • AfterBurnettAfterBurnett Member Posts: 3,474
    tshirtbooth said:
    If you feel comfortable sending me the project id be happy to take a look

    That'd be awesome :) What's your email address?
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Never mind, found it :)
Sign In or Register to comment.