我正在使用 cocos2d-x 开发游戏。我想在用户按下暂停按钮时暂停特定场景。
谢谢。
最佳答案
您可以通过两种不同的方式暂停特定场景
1.) 使用 CCDirector::sharedDirector()->stopAnimation();
暂停并使用 CCDirector::sharedDirector()->startAnimation();
恢复.
2.) 使用CCDirector::sharedDirector()->pause();
暂停和
CCDirector::sharedDirector()->resume();
恢复。
关于c++ - 在 cocos2d-x 中暂停特定场景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24606829/