hey all,

what would be the calculations needed for making a simple sprite opject point towards the cursor position?

ta

do you mean 'rotate the sprite so it is oriented towards the cursor position' or 'move the sprite towards the cursor position' or something else? What do you mean by 'point towards'?

'rotate the sprite so it is oriented towards the cursor position'

This site has an example of eyes folowing the cursor. The program is for Visual C++ and is surprisingly simple. Download Tom and Jerry from:

http://www.cwinapp.com/tutorials/sourcecode/045.zip

also look in the fun stuff section of this great website! There is enough English there to find your way around. It also gives you an idea about the real nifty programmers in other countries.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.