I am making a 2D program which a large (1000 x 793) sprite. How would I detect where on the sprite the mouse was clicked? I want it to give me the x and y coords when I click on the sprite. I can already detect when the sprite is clicked on, but there seems to be no way to get the point of click.
I thought at first to get the word coords, then convert it to the sprite, but it always seems to be off by around 96 pixels for some reason.