Stop Gravities Effect When Pause Game?
JoshKahane
Member Posts: 470
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.
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
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.