Hi,
Wondering if anyone could help, I have an app with a board that is drawn to screen, then displayed in the app window using a view. I then want to be able to click on the screen, and calulate what part of the board was clicked on.
The view zooming/moving is working great, and I can pick up the mouse coordinates when clicking, but it is selecting the wrong part of the board. I'm guessing this is because I have to take into account the view zoom and movement values.
Could anyone tell me how to convert from the mouse click coords to the sprite coords taking into account the view settings?
Many thanks if you have some tips
...