Movable Object

austinleeaustinlee Member Posts: 19
edited November -1 in Working with GS (Mac)
Is it possible to have an object that I can move when an attribute is set off but does not move until then? I'm using gravity and it just falls off state unless I uncheck movable.

Comments

  • CoIinCoIin Member Posts: 197
    You ought to be able to set actor.Physics.Movable = true, but that appears not to work.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    unfortunately, you can't change the Movable attribute at runtime...

    you can add an accelerate behavior to the actor in the opposite direction of gravity to counteract it. Make the acceleration direction 90 degrees, and the speed equal to the gravity amount.

    that will hold it in place.
  • austinleeaustinlee Member Posts: 19
    Thanks!
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    It is for this exact reason that I almost never have scene gravity. It is much easier to keep the scene gravity at zero and add an accel in the 270 direction in individual falling actors than it is to to use scene gravity and keep other moving actors from falling. Putting acceleration in the opposite direction should work - but they always seem to move just a little. So I would recommend keeping scene gravity at 0.
Sign In or Register to comment.