GameSalad

Completely stopping an actor in its place

msx88msx88 Posts: 27Member, PRO

Hi!
By default, my main character is constantly scrolling but when it hits an object, I have it stop using:

if collide
linear velocity x = 0
linear velocity y = 0

For the most part it works fine. But when it hits a moving object, like a spinning projectile, every once in a while it behaves a bit erratically, like it will move into a random direction without stopping.

Would there be a surefire way to make it completely stop?

So far in the forums, I’ve found I may be able to spawn a second actor to take its place but I’m wondering if there’s another way?

Thanks in advance!

Comments

Sign In or Register to comment.