2 animations in 1 program?

Hello, I have 2 separate programs for the animations at the moment. How would I use 2 animations in 1 program? Also, I would like to change the animation according to the timer.

thanks! :wink:

Hello!

You might need to post more details. If you have 2 programs already working, probably the easiest thing would be to take your draw function from each and put it into one of the others, or create a new program and add those both in.

Another option and better thing to do is to take each animation and put it into its own class file (like Animation1.cpp and MyAnimation2.cpp) and then bring each of those into a single app.

You can use ofGetElapsedTimef() to change animation based on the timer.

1 Like