开发者

how load paused scene again in cocos2d?

I have 3 scenes first is main game scene. When I pause that scene I replace it with other scene and then other view is loaded i.e. main m开发者_运维知识库enu so when I click on continue button on that scene I have to resume main game scene but it shows 2nd scene with which I have replaced the game scene. I don't know what to do because I have used both views and scenes in my application.


Your question isn't really clear to me.. and by the fact it hasn't been answered previously, I suppose its not clear to others either.

Can you possibly post the code (abbreviated if its long) which you use to replace the scene and the view?

Do I understand it correct that you use:

  • a scene for main game (first scene)
  • a scene with a view in it for the menu (second scene)

When you pause the game, the first scene is replaced by the second scene. But when you press continue, the second scene (menu) isn't replaced by the first one (main game)?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜