mouse tracking engine v2 (tracks mouse, no clicking required) -
08-05-2010, 12:08 PM
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.
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
Last edited by arty-fishL; 08-05-2010 at 01:05 PM.
Reason: forgot to attach the world
|