Right now, I am attempting to get the units to stop moving and enter attack phase. When there are no units, the unit moves on.
For that to work, I had to give each unit its unique aiming range as part of the container.
I also check to see not only that the aiming sprite collides with the unit, the player values shall not be the same.
I have noticed a difference between on collision and overlapping. When i replaced on collision with is overlapping, the unit stop behavior does not work. when I did keep on collision, the stop unit movement works.
Now I want to know how I can get the unit to stop moving until there is no enemy unit on sight?