I am using Director Class, and to control a bunch of animations i am using timer.paerformWithDelay…
Now at anytime during the game play I have a “home” button they can hit to change scenes back to a menu.
When this happens I get a error for each timer.performWithDelay that’s been fired but is in its “Delayed time”
I have a method to track and manually kill these timers out right now so I don’t get errors. I am wondering if there is a magic solution I am missing… Something like a :
timer.cancelAll() where it will simply cancel… EVERYTHING that’s been triggered… before I Transition screens… [import]uid: 88147 topic_id: 24647 reply_id: 324647[/import]
[import]uid: 52491 topic_id: 24647 reply_id: 99853[/import]