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 & HelpVideo Capture,  Movie Playback,  Vision Libraries › How to make images move within functions PlsHELP!
Page Index Toggle Pages: 1
How to make images move within functions? PlsHELP! (Read 408 times)
How to make images move within functions? PlsHELP!
Jul 30th, 2008, 7:21am
 
i've been struggling on the script for long,

how do you actually make the image move a certain distance you want or cause its width to increase to a certain length.

Right now in my script, the part where the image is called is actually inside :

void draw(){
 if(){
   if(){
     image();
   }
 }

}


How do I make it move a certain distance or change in width if the "if" condition is met?

also without using any other library like "megamu.shapetween", just the normal script:


width += 5; //til width reaches a certain value.


Your suggestions would be greatly appreciated Cheesy


Page Index Toggle Pages: 1