How to get an actor to slow down and then stop
CurtandAsh
Member Posts: 18
How do you get an actor to slow down and then stop using the keys on a keyboard? ):
Comments
When slowmedown = 1
set velocity = motion.x+motion.y
when velocity > 4
set motion.x = motion.x/10
set motion.y = motion.y/10
otherwise
set motion.x = 0
set motion.x = 0
Something like that. Probably needs tweaking if it does indeed work at all. Sorry no time to test myself.
Or simply apply the accelerate and drag behaviours
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io