Hello,
I am trying to get the video to not begin playing until stage 1, but it starts right away. Any suggestions? Thank you!
PImage old;
import processing.video.*;
Movie movie;
int stage = 0;
void setup(){
size(500,500);
old = loadImage("old.png");
old.resize(500,500);
movie = new Movie(this, "full.mov");
movie.loop();
}
void draw(){
if (stage == 0){
fill (255,0,0);
rect (0,0,500,500);
if ((mousePressed)&& (mouseX > 0) && (mouseX < 250)&& (mouseY > 0) && (mouseY < 250)){ //button on upper left side
stage = 1;
}
}
if (stage == 1){
image(movie,0,0,500,500);
image(old,0,0,500,500);
}
}
void movieEvent(Movie m){
m.read();
}