We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › How do I get 2 shapes to move at their own speed
Page Index Toggle Pages: 1
How do I get 2 shapes to move at their own speed? (Read 268 times)
How do I get 2 shapes to move at their own speed?
Feb 17th, 2008, 8:22am
 
My Question:
How do I get one ellipse to move(ease) it's own speed?
And the second ellipse to move9ease) at a different speed?
But both of them end up lining up with the leader ellipse.

Click below to see my current work:
Thanks

http://yg.typepad.com/computation08/files/input4_ex2b.html

Re: How do I get 2 shapes to move at their own spe
Reply #1 - Feb 18th, 2008, 6:29pm
 
don't do that : ellipse(x/2, y/2, 40, 40); since the second ellipse will never move by itself.

create some other variables : i.e. x2, y2 and easing2, and apply the same formulas.
Page Index Toggle Pages: 1