View Single Post
mouse tracking engine v2 (tracks 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 v2 (tracks mouse, no clicking required) - 08-05-2010, 11:08 AM

As some of you may know I posted a mouse tracking engine a while back, in my opinion it was not the best as it did not properly track the mouse.
Alice has no function for making an object follow the mouse.
I solved this problem before, now I made a better one.

I have made a new one now that should almost perfectly track the mouse in any screen size.

The cross-hairs should perfectly follow the mouse. This cannot be set off position by radically moving the mouse around as it resets on every move.
It should auto detect the window size using a little bit of jython coding.

When you first load the world and play it or when you change the window size and then play it jython will supply the wrong window size, to solve this just click restart at the top of the frame.

If you wish to use this please feel free, as long as you credit me in your post and link to this thread. Thanks.
Attached Files
File Type: a2w mouse track v2.a2w (193.0 KB, 45 views)


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬

Last edited by arty-fishL; 08-05-2010 at 12:05 PM. Reason: forgot to attach the world
   
Reply With Quote