Is there a way to prevent actors from overlapping? Because right now, I have actors that are following the player, but if the player goes around these actors for long enough, the actors bunch together and merge into what seems like, on the outside, one actor.
I saw other posts suggesting turning the actors 180 degrees then moving, but i don't want them to turn.
I have already tried
the above works, but at certain times, the two actors will always be touching each other even while moving backwards...
1 2 3 4 5 6 7 | private void dontStack() { if (isTouching(Scarecrows. class )) { move(-speed* 2 ); } } |