Thursday 15 September 2011

objective c - How to pause a game in cocos2d? -


I have been asked before this question but none of the answers seem to be what I do I am trying. I need to be able to stop the animation, but I still might be able to get my break menu and ask the user for input. Is it possible and if so, how can I go about it?

There are 2 ways to pause cccceter for this purpose and resume

  [[CCCceterar shared director] pause];   

and

  [[CCDCD share director] resume]; From the documentation:  

The driver will snatch the view, but all scheduled timers will be stopped. On hold, the draw rate will be 4 fps CPU consumption

No comments:

Post a Comment