Page 1 of 1

how do u make an actor go towards the mouse slowly

PostPosted: Mon Jun 25, 2007 8:30 pm
by DarkParadox
how do u make an actor go towards the mouse slowly?

PostPosted: Mon Jun 25, 2007 8:35 pm
by d-soldier
In the actor's DRAW ACTOR script, use the "MOVE TO" function, in in the "relative to" box, select "MOUSE POSITION" and adjust the velocity as desired...

PostPosted: Mon Jun 25, 2007 8:48 pm
by Troodon
Will your actor never reach the mouse in your game?
If yes, put this in the collision event with the mouse:
xvelocity = 0;
yvelocity = 0;

Or it will start shaking when it reaches.
By the way, to use the MoveTo function, you need an actor mouse.

PostPosted: Mon Jun 25, 2007 9:34 pm
by d-soldier
Good call on the shaking actor thing there... but the move-to function allows "mouse position" which does not require a mouse actor.

PostPosted: Mon Jun 25, 2007 9:41 pm
by Troodon
Cool, I don't know why but I never saw that before today! :shock:

PostPosted: Mon Jun 25, 2007 10:00 pm
by d-soldier
You've been around for awhile, so maybe it came out within the last couple versions???

PostPosted: Tue Jun 26, 2007 8:05 am
by Troodon
No, I purchased the program 15 days after registering to these forums and have since used the same version 1.3.3 and it has the option. I guess I always knew what actor I'm seeking from the list, and that's why I didn't realise it. :wink: