loop music with SKAction <p>I want to loop my background music with an SKAction but the music stops after one row when I swich to an other scene. Is there a way to start the loop and keep playing it over different scenes? right now the code is placed in the init method of MyScene - is there a better place... maybe didFinishLaunchingWithOptions?</p> <p>here is what i've tried:</p> <pre><code>if (delegate.musicOn == YES &amp;&amp; delegate.musicIsPlaying == NO) { SKAction *playMusic = [SKAction playSoundFileNamed:@"loop.wav" waitForCompletion:YES]; SKAction *loopMusic = [SKAction repeatActionForever:playMusic]; [self runAction:loopMusic]; delegate.musicIsPlaying = YES; } </code></pre>