Friday, March 28, 2008

How To Make A Sprite Move Towards Your Mouse Pointer When You Click

Hey Everyone, this tutorial will teach you how to make a sprite follow and move towards your mouse pointer/ cursor when you click.


Step 1:
Choose the sprite that you want.

Step 2:
Get the sprite following your mouse cursor. This way, wherever you point your mouse the sprite will look in that direction.

Step 3:
Now make the sprite recognise that when you click and hold down the left mouse button you want it to go to the move command.

Step 4:
Now, get the sprite to move in the direction of your mouse pointer when you hold the left mouse button.
Have fun making those sprites move in the direction you choose!

2 comments:

Unknown said...

might be better to use
< 10 rather than = 10
because it might jump over the 10 value

good effort though

Unknown said...

Very useful. I'm also having fun changing my mouse cursor and could do the basic personalized mouse pointer . <3