How can I make the "Continue" button in the game? I understand that for this you need to save the state of the scene. Tried to save the scene itself in NSUserDefaults but did not work.

Error text:

Attempt to set a non-property-list object name: '(null)' frame: {{0, 0}, {1024, 768}} as an NSUserDefaults / CFPreferences value for key Scene]

    1 answer 1

    All SpriteKit objects support archiving, so Apple recommends saving scenes using NSKeyedArchiver .