Quantcast
Viewing all articles
Browse latest Browse all 40524

Draw different scenes with ofGetElapsedTimeMillis() // error on Array bound

Hi! I am making an animation video interactive with sound. I want to change different scenes which I draw already by specific time(seconds).
On ofApp.h I have

int timings[] = {5000, 6000, 7000, 8000}; /*the numbers are the seconds which the scene will be change via ofGetElapsedTimeMillis()*/
int sceneNum;
int numOfScenes;

but on int timings[] it writes me error (array bound cannot be deduced from an in-class initializer)
Do you have any ideas about how can I solve this?
(Maybe a very beginner question)

thanks
YK


Viewing all articles
Browse latest Browse all 40524

Trending Articles