
09-07-2005, 11:28 PM
|
|
-Backtoscripts-
|
Join Date: Aug 2003
Location: California
Posts: 289
|
|
|
Use the sine, cosine circle. Have a single variable, 'angle', and have it increase or decrease (increase = clockwise, decrease = anticlockwise). Then add the image's current x and y to that of the cosine and sine, respectively, of the angle. It's the sine, cosine circle, or the unit circle as they call in Trig and PreCal.
Edit: This is all in radians, so use a MOD (%) or a compound var assignment (a?b:c) to keep the 'angle' var between 0 and 2*pi |
__________________
"The higher you fly, the harder it is to breathe."
[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
|
|
|
|