Preventing actors overlapping
Hi, I have a game where two actors chasing a hero actor. In time, the two actors will catch up the hero actor and its game over. I have a problem here where the two actors overlapping each other when they catching up the hero actor. Is there a way where i can set a distance between the two actors so that they wont overlap? I tried collide behavior but they will bounce each other back. What i want to achieve is they have a little distance between them to prevent overlapping. Can someone give me an insight?
Comments
If you want to continue using the Collide Behavior, just adjust the Bounciness Setting in their Physics Properties so they don't bounce each other so far.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
The bounciness settings under Physics was set to 0.0 which means its already minimum value right?
Yes, they should have not been bouncing at all then. Were they maybe bouncing off the player or something else?
Bounciness needs to be set correctly in both actors that are colliding too.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Ah, I see. I forgot to set bounciness in another actor. Thanks Jamie!
You're welcome.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page