Original Post
Okay, basically I am kind of at in a point in my 2d isometric engine where i am doing sprite selection (really far huh?
) As in, i can target other enemies and stuff and click on them, also click on things on the ground such as items. Now correct me if i''m wrong, but is this the best way to go about this. Just have an array pointing to all clickable objects on the screen, and then having a for loop go through each object and seeing if my mouse is on one of the objects... That seems the best way to do it...
Also, can anyone tell me, or link me to a tutorial on how to get cursor direction from cursor position? I have 6 directions, Up, down, left, right, UpRight Diagonal, DownRight Diagonal, UpLeft Diagonal, and DownLeft Diagonal. From a cursor point on the screen in x,y format, is there an algorithm to find which direction it is facing? Thanks