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 › Creating Multiple Moving Stop-Motion Animation
Page Index Toggle Pages: 1
Creating Multiple Moving Stop-Motion Animation (Read 405 times)
Creating Multiple Moving Stop-Motion Animation
Feb 8th, 2009, 6:11am
 
Hello Processers!

I have newly discovered Processing and am working on a stop-motion project. I have become fluent with making images move left to right, and creating delays..

I want to create stop-motion animation that moves in a sequence of directions. Preferably the following sequence:
left to right
(break of no pictures)
right to left
(break)
downward
(break)
upward

I know I saw someone create a draw that moved images up and down rather than left to right, so I know it can be done. The only question is if the images can change direction and happen all at the same time.

This is what I have so far:

PImage foam;
int which;

void setup() {
size(900,700);
background(0);
which=1;
println("setting up");
}
void draw()  {
 background(0);
foam = loadImage("picture"+which+".JPG");
image(foam,10+which*60,10);
println("drawing");
which--;
if(which<1)
{which=5;

}
if (which==3 || which==5) {
delay(900);
} else
 delay(20);
}


It takes my images and moves them from right to left with a delay.



So can anyone help me? Does anyone know of any way to create these four separated moving sequences?

THANKS!
Page Index Toggle Pages: 1