Right now we're working on a project where we move a number of sprites, one at a time, in a loop. We need to know when all of these animations have finished in order to progress. As of right now we have a god awful solution where EACH sequence calls the same callback function (CCCallFuncN) where we have a global int that is simply incremented on each call. In this callback we then check the int and see if it's equal to the number of animation sequences we created in the loop and if it is, continue with the code.
We'd like a much better solution that doesn't involve a global int and can some how determine if all animations have finished and only proceed then.