Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

View Poll Results: is it good
fabulous 6 50.00%
good 6 50.00%
ok 2 16.67%
not so good 1 8.33%
Multiple Choice Poll. Voters: 12. You may not vote on this poll

Thread Tools Display Modes
Prev Previous Post   Next Post Next
mouse tracking engine (follows mouse, no clicking required)
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

distance, follow, mouse, movement, track

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.