SpriteKit - Game crashing when presenting a new scene

Hello,

I’m coding a platform game and i want to reset the scene when my character has no more lives.
I’m using “presentScene” to restart the game by creating a new scene, but when i launch the app on my iPhone and the character is “dead”, i have “thread 1: signal SIGABRT” in class AppDeleguate and my game freezes.
Can someone help me ?

Hi @naiiroolf

How exactly are you using the “presentScene” function? Please provide some code. Also maybe you have error messages in your xCode console?

Nikita

This topic was automatically closed after 166 days. New replies are no longer allowed.