Making Actor Slide in One Direction and Slow Down
EMPW09
Member Posts: 15
Working on an iPhone app where the main actor will dodge objects at the press of a button. How do I make it so that after one button press, the actor will move in one direction and slowly come to a stop?
Comments
Set the moving actor's drag (under the physics tag) to 400.
When key is pressed : change velocity to 300.
Thank you @Socks !!!
Obviously you can play around with those two values to control how far it slides and how fast it slows down.