Without answering fully your request, as I haven't played much with the Movie library, here are some generic advices:
- Load help.png in setup(): if you load in the middle of a sketch, it will make a visible stop in the succession of frames, so when you don't need to load a bunch of images, just load them upfront.
- The condition you look for is:
if (millis() > time2)
if you want the event to happen after time2.
At a simple level, if you want to display the movie for the first period and the image after it, it would be something like:
For example, with integers, you can number steps:
1 = display movie
2 = display help
3 = display movie again, for a different duration
etc.
The switch keyword is useful for this kind of state management...
- Load help.png in setup(): if you load in the middle of a sketch, it will make a visible stop in the succession of frames, so when you don't need to load a bunch of images, just load them upfront.
- The condition you look for is:
if (millis() > time2)
if you want the event to happen after time2.
At a simple level, if you want to display the movie for the first period and the image after it, it would be something like:
- void draw() {
- background(0);
- if (millis() < time2) {
- image(movie, 0, 0);
- } else {
- image(helpimg, 0, 0);
- }
- }
For example, with integers, you can number steps:
1 = display movie
2 = display help
3 = display movie again, for a different duration
etc.
The switch keyword is useful for this kind of state management...