Best way to stop a moving actor?
reddotinc
Member Posts: 653
Hi guys,
Whats the best way to stop a moving actor (that is using acceleration)?
I have an actor that flys up and down using acceleration, and only does so when my game is not paused. However, when paused is set, the actor slowly moves down until it hits the bottom of the scene. I've check gravity on the scene and both are set to 0.
My question is whats the best way to instantly stop the actor from moving?
Thanks
// Red Dot Inc
Whats the best way to stop a moving actor (that is using acceleration)?
I have an actor that flys up and down using acceleration, and only does so when my game is not paused. However, when paused is set, the actor slowly moves down until it hits the bottom of the scene. I've check gravity on the scene and both are set to 0.
My question is whats the best way to instantly stop the actor from moving?
Thanks
// Red Dot Inc
Comments
I have 2 attributes constrained to the x and y of my actor, when not paused this constrain happens (constantly updating) when is paused they are swapped so that they are constrained to the current position.