Mouse Speed Limiting

Non-platform specific questions.

Mouse Speed Limiting

Postby MudRat_02 » Sat Jul 07, 2007 3:54 pm

Ok, in short, what I need is the actor to follow the mouse (done), but I also need a speed limit on that actor. Does anyone know how to limit the speed for a mouse controlled actor? Its easy with keys, but I'm not sure with the mouse. Any help would be appreciated.

Also, a side note, if i wanted this actor to slowly start trying to move independently (randomly and unpredictably) more and more as time goes on (and the player has to slowly increase the magnitude of their input to keep the actor where they want), how would i do this? Thanx guys :D
MudRat_02
 
Posts: 21
Joined: Thu Feb 01, 2007 2:04 am
Score: 0 Give a positive score

Postby Troodon » Sat Jul 07, 2007 7:05 pm

You can make a fake cursor MoveTo so that it slowly goes towards the real mouse position. ("real" cursor is small and under all the other actors by z value)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest