![]() Topic awaiting preservation: Circle Issues- well, not really (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() http://www.twistedport.com/misc/circlepath/circle.html code: //mouseX = event.x;
|
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
![]() event.x refers to the x position of the object that called it (or something similar). therefore, uncommented, when you first move your mouse, the 2 lines will execute and you will have your values, but when the setTimeout() calls it, the event does not have an x position, it is called in the script, hence there is no object to give it x and y values |
Bipolar (III) Inmate From: schillmania.com |
![]() If you wanted to center it around the mouse, you could use a simple mouse handler function and set some global variables for reference there. |