Stop Gravities Effect When Pause Game?

JoshKahaneJoshKahane Member Posts: 470
edited November -1 in Working with GS (Mac)
Hi

I was looking at the wiki and stuff and I have gotten a pause button all set up, my only issue is I have gravity in my game and my actor is still effected by that when I pause. How can I stop this?

Thanks.

Comments

  • micahmicah Member Posts: 85
    I just ran into this same problem. Gravity is a scene attribute, not a game attribute, which means you can only change it with an actor that has a special instance in a scene. So you'll have to create an actor, drag it onto the scene, and then double click on it and click the lock to edit it. At that point you can do a Change Attribute on Scene.Gravity and set it to 0.

    The problem then though is Newton's law: objects in motion stay in motion unless acted upon by an outside force. So all your actors that are in the middle of falling, or moving at all, will continue to move in the same direction even if gravity is set to 0. This problem is much much trickier and would involve adding a bunch of special behaviors and some attributes to each actor that moves, unless I'm missing something. I decided to not let people pause my game that used gravity and instead just quit the current level.
  • JoshKahaneJoshKahane Member Posts: 470
    Hmm, yep ok thanks Micah. Sounds like more trouble than its worth. I shall give it a miss as its not required. Thank you.
Sign In or Register to comment.