I wanted to build some sort of unit control RTS mechanic.
Click or drag a box around a sprite/image, click somewhere, and have it go there.
I was thinking I would need to utilize variable driven animation and Mouse.X, Mouse.Y.
Perhaps something like,
move angle towards mousex,mousey
but does anyone have an idea they could share with me to make this a lot better or easier?
another idea I had was to implement some sort've grid or tile system.
Using two variables, isSelected for the unit and tileSelected, that way it's less gimicky trying to force the position of where the mouse clicked, as I can't seem to find an event to assign a X/Y of where was clicked.
any help on something grid like as well?