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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -