The coordinates for both ‘Draw Rect’ and ‘Get Actors in Selection Rectangle’ should be correct. The mouse pointer starts and ends exactly where the rectangle is drawn:
Actors are being selected before they are inside the rectangle.
If I move the actors to the bottom center of the screen then the selection area is much more accurate but still not correct.
I’ve done a bunch of different things to try to amend the Mouse Start Position and Mouse End Position variables. Also I have tried to get more accurate values for the variables using different methods as well but it only makes it worse or just changed the problem.
Since the rectangle is selecting units too high up and too far to the left I tried to just change the ‘Current Mouse Position’ variable like this…
This works when making the rectangle from top of the screen to the bottom, but causes the problem to persist when you are drawing the rect from the bottom of the screen to the top:
I hope this all makes sense. The only thing I can think of now is to detect whether you are drawing up or drawing down and then changing the ‘Current Mouse Position’ variable in different ways based on that. But that doesn’t sound like a good solution because whenever the box overlaps the actor will still be based on where the actors are on the screen.
Been trying to get this down for a few days.
Again, any help is appreciated. :]