In my sprite kit game I use a SKAction to play a mp3 file when two sprites did collide. While the game works fine I noticed a small \"hickup\" in the game the first time the
To translate the Karl Voskuil preload sounds answer's in Swift 2.x :
let preloadSound = SKAction.playSoundFileNamed("my-sound-effect.caf", waitForCompletion: false)
so after you can do :
playSound(preloadSound) ... func playSound(soundVariable : SKAction) { runAction(soundVariable) }