0
我正在尝试使用spritebuilder在Swift中制作游戏。我能够从我的主场景变化的场景,但是当我尝试从现场切换场景我切换到的应用程序崩溃与此错误:花栗鼠错误:无法删除未更改场景时未添加到空间的物体
Aborting due to Chipmunk error: Cannot remove a body that was not added to the space. (Removed twice maybe?)
我从来没有使用cpSpaceRemoveBody
功能,并在线程1,删除被自动调用两次(我认为这是问题)。
我使用的切换场景:
let scene = CCBReader.loadAsScene("Gameover")
CCDirector.sharedDirector().presentScene(scene)
我一直在寻找,我找不到为什么会发生什么。