If I'm reading your question correctly...
Add one(or what every you want your increment to be) to the x and y of the sprite until it equals the the x and y of the mouse.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
|