Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : using timer

$
0
0
this is how far i have gone. now the movie plays, but my problem is using the timer to change.
now i want the movie 10 play for 40seconds then loads the first .png file and after the 30seconds displays the second .png.
i dont really know what am missing out cuz am still new to processing
 
 
import processing.video.*;
Movie movie;
PImage helpimg;
PImage baseimg;
Timer time;
//int time1 = 3000;
int time2 = 4000;
float a = 0;

 

void setup() {
  size(1000, 600);
  background(0);
  movie = new Movie(this, "intro.mov");
  movie.play();
 
}

void draw() {
  background(0);
  image(movie, 0, 0);
  int currentTimer = millis();
 
  if (currentTimer < time2)
            {
              helpimg = loadImage("help.png");
            }
}
void movieEvent(Movie m)
          {
            m.read();
          }

 

         

 

 


Viewing all articles
Browse latest Browse all 1768

Trending Articles