Pausing a sprite kit scene

Use SKView‘s isPaused property:

Swift:

scene.view?.isPaused = true

Objective C:

self.scene.view.isPaused = YES;

This will stop all actions and physics simulation.

Leave a Comment