On Tue, Jan 13, 2009 at 8:23 PM, Hordeling <[email protected]> wrote: > > > On Jan 13, 11:05 am, "Lucio Torre" <[email protected]> wrote: > >> The game should keep running or not? >> if not, you can do what pause does: > > Which examples use the pause methods? > > It's not clear to me whether I call a function to pause, create a > PauseScene, or something with the functions below. (Sorry, still > learning how to use Cocos!!) > > get_pause_scene() > set_pause_scene_generator(generator) > default_pause_scene()
Pause is a generic funtionality that we use to get a free 'pause'. You want to do the same but not overide the pause stuff. When a scene is not on stage, time doesnt pass for that scene. So doing pause is very easy. Just push a scene on top of the current scene (the game scene). So the game will leave the stage and get paused. If you get a screenshoot (get_color_buffer) before pushing the new scene, you can use that as background, so it looks like you are in the same scene and is just froze the game. Lucio. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
