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 › User-generated path for boid program
Page Index Toggle Pages: 1
User-generated path for boid program (Read 812 times)
User-generated path for boid program
Oct 11th, 2009, 2:09pm
 

I am playing with the above path following program on Daniel Shiffman's website.  (tp/classes/nature/week06_s09/pathfollowing/)

I am trying to make a similar path-following program by user-generated path. User can draw path on canvas and then all boids will follow the path.
So far I have declare an array to store the x, y coordinate values of mousePressed events. But this cause some code error.

Is there any way to make a user-generated path? thanks. Shocked


Re: User-generated path for boid program
Reply #1 - Oct 12th, 2009, 1:25am
 
huiyingke wrote on Oct 11th, 2009, 2:09pm:
Is there any way to make a user-generated path
Yes, of course...

Quote:
But this cause some code error.
So show us the related part of code And the exact error message.

Page Index Toggle Pages: 1