View Single Post
mouse tracking engine (follows mouse, no clicking required)
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Talking mouse tracking engine (follows mouse, no clicking required) - 11-07-2009, 03:27 PM

Mouse tracking engine (follows mouse, no clicking required).

Alice has no function for making an object follow the mouse.
I solved this problem.
Hope you can use this engine in your worlds somehow, but if you do use it then post back to me so I can see what you've made of it (not so i can steal the credits for it).
The 'sensitivity' global variable can be refined to make the ball move at the same speed as the mouse.

What happens is it senses changes in mouse distances from the edges, then it translates these into directions for the on screen ball to move and calculates the ammount of metres equal to mouse distances for it to move.
it also uses a scale factor to fit different screen settings.

ps this is quite complicated just for a mouse movement tracker.


----------------
Now playing: David Guetta ft. Akon - Sexy Female dog
via FoxyTunes
Attached Files
File Type: a2w mouse track.a2w (281.3 KB, 218 views)
   
Reply With Quote