Hi, thanks for your reply! I managed to get it work yesterday evening luckily. It now changes on the amount of frames gone by, but changing it to seconds will probably work a bit better. Thanks for the reply to the right thread!
If anyone finds this thread in the future, this is the code I used;
void draw () {
if (frameCount < 10 * frameRate) {
drawSquare();
} else if (frameCount < 20 * frameRate) {
drawCircle();
} else if (frameCount < 30 * frameRate) {
drawEllipse();
}
}
make sure all your code in the void functioncalls is working. change the numbers depending on how long you want them to last.