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
Post a Comment