Is there a way i can make an actor stop moving when false, and start moving when true?
DinoBit
Member Posts: 23
The title may sound a bit easier than it actually is. Is there a way I can make it to where the button is "true", the actor will stop moving (as if it paused), then start moving again when it is "false"? The main actor has an accelerate rule, not a move rule, which makes it harder. I want it to be able to stop moving COMPLETELY when "true", then start moving and the same exact pace it was before it was "true". Is this possible?
Comments
I don't know quite how your project is set up, but here's a simple example file (attached), click on the moving white actor to stop it, when you release your mouse button (or finger) it will continue moving at the speed it was moving when you stopped it.
Here are the basics:
Accelerate.
If touched, then store the current velocity - then change current velocity to 0.
When released, change the actor's velocity back to the stored velocity values.