I'm trying to implement some sort of animation or event queue such that somehow only the item that gets out of the queue does what it's supposed to do and the items in the queue don't do anything at all.
Here is some pseudocode
queue = (obj1.animation1(), obj2.animation(), obj1.animation2)
The idea is that obj2.animation() and obj1.animation2 don't run until they get to the first position of the queue or they get popped off.
Also main has to be running while the queue is executing the animations and popping them off.