I have 4 pawns they are instances of an object called Player. They start at a place and when a six is thrown one goes to the starting point. When another six is thrown one more etc… There they all overlap each other. When i click them they all move at once to their pathfinding destination. What i need is to just move one and let the other ones stand there.
So the point is if one or more are overlapping each other in one place one must always be visible and when that one moves the other one needs to become visible. I got this to work until there are two times two that overlap.
and if you place all instances at the start, and one of them needs to move, where they will know who has to move? isn’t easier spawn only one, and when it is reach the desired destination, spawn the next one?
The instances exist from the start. Where they move is based on the amount of thrown dice added to where they are already. So the problem i have is not only at start but going on in game itself too. Because sometimes there are 4 pawn (called player) that fall on two groups of two players wich means both groups have a distance smaller than 10pixels
So the easier question is how to if two instances are at same spot make one visible. Wich you can see i did in my code on the first expression. I only have a problem when either 3 are overlapping or the two groups like i said.
It wouldnt be easier because then need to change all rest of the code i already spent long time on and its not easely changed. This is basicly the only thing that needs to be fixed