I'm working on something similar to "They Are Billions" and I can't get my soldiers to move correctly.
What's supposed to happen:
I draw a selection box around several soldiers. Soldiers are then selected (and highlighted green) and a right click will tell them where on screen to move to.
What's actually happening:
I draw a selection box around several soldiers. Soldiers are then selected (and highlighted green). The first right click does nothing. On a second right click, a single, seemingly randomly selected soldier moves to the correct location. The rest do nothing.
Here's the code: