Hello all - this is my first post. I have been really enjoying the various documentation, examples, etc. However, I can’t really find much on the best way to manage multiple screens. I have seen the Director Class and am wondering if that is the best practice?
My specific issue is that I created a game loop that runs off of the “enterframe” runtime listener. I am using timers to manage various facets of the action (i.e. player loses life - pause enemy timers, clear screen, then resume).
I now want to add an option screen before the loop starts and invoke it at will from within the loop. To that end, I did manage to create a display.group() that gets called when I push a button. However, I have to pause all the timers and physics manually when I press it. Sometimes it does not behave properly (i.e. actors will appear on the new screen if it is pushed to quickly with consecutive clicks).
I was hoping for an best approach to stopping the action and then resuming it and navigating between multiple screens. Any help would be greatly appreciated. Thank you very much.
JFish [import]uid: 81347 topic_id: 15387 reply_id: 315387[/import]
[import]uid: 52491 topic_id: 15387 reply_id: 56886[/import]
[import]uid: 84637 topic_id: 15387 reply_id: 56974[/import]