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.
Page Index Toggle Pages: 1
Leader\follower animation (Read 312 times)
Leader\follower animation
Sep 10th, 2008, 4:13pm
 
Hello everybody...

I am desperetly trying to make a simple( not for me ) animation!

what i am trying to do is to make a color tracker ( a simple ellipse that finds a color you asked for)act as a leader which drags behind itself some other ellipses...Basically i can't understand how to make other ellipse follow the leader!
I found some exampls in the processing menu (file>examples>topic>interaction>follow1,2,3)
but all of them use the mousex and mousey paramters...How can i "tell" the spheres to follow the color tracker?

can anyone help??

p.s.
just to be clearer, the color tracking is just fine. Problem is dragging things!
Re: Leader\follower animation
Reply #1 - Sep 10th, 2008, 5:30pm
 
Replace mouseX and mouseY with the x and y locations of the tracked colour?

Perhaps posting your code would make it easier to help
Page Index Toggle Pages: 1