Topic awaiting preservation: Circle Issues- well, not really (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 08-20-2003 17:29
http://www.twistedport.com/misc/circlepath/circle.html code: //mouseX = event.x;
|
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 08-20-2003 17:40
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 |
posted 08-22-2003 06:48
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. |