swift - Trouble with SKAudioNode -


in app when screen touched want play file "pewpew.mp3". not working. i've looked @ several of these posts none of working. code:

let shootnoise = skaudionode(filenamed: "pewpew.mp3")         shootnoise.autoplaylooped = false         addchild(shootnoise)         shootnoise.run(skaction.play())         hero.run(playnoise) 

that inside of

override func(touchesended) 

any ideas? feel i'm over-thinking this.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -