Hi there
So i have my table where i have lights in the feet, in the front, leftt, right behind and on the top. I have written the code so i can reuse all my animations on any part. so far so good. but id like now to write a startup sequense so play animation a for 10 seconds on the feets, afterwards add the middle part with a different animation for 20 seconds and last the top for a certain amount… so my goal simplyfied. I have some troubles finding a good way to orchistrate the different animations. the biggest problem is the time part. one ide was following code (be aware its pseudo code)
starttime = millis();
…
unsigned long deltaTime = millis() - starttime ;
if (deltatime < 10000){
playfeetanimation();
} else if (deltatime > 10000 && deltatime < 30000){
stopFeetAnimation();
playMiddlePartAnimation();
} else if (deltatime > 30000){
playTopAndFeetAndWhatever();
}
do you may have any better solutions for this ?
I would love to see a more generic way to do the same…