In my app when the screen is touched I want to play my file "pewpew.mp3". It is not working. I've looked at several of these posts but none of the are working. This is my code:
let shootNoise = SKAudioNode(fileNamed: "pewpew.mp3")
shootNoise.autoplayLooped = false
addChild(shootNoise)
shootNoise.run(SKAction.play())
hero.run(playNoise)
That is all inside of the
override func(touchesEnded)
Any ideas? I feel like I'm over-thinking this.