Playing a sound file only once

andrewhnovak@gmail.comandrewhnovak@gmail.com Member, PRO Posts: 77

Im building an endless runner and after collecting 4 coins I have a sound file that plays. The only thing is that when you die and start over every 10-20 seconds or however long it takes you to die, you hear the same file over and over again and it's kind of annoying. Is there a way to play the sound file only once, so If I die I don't hear it again. The only way I want you to hear it again is if you quit the application from running and relaunch it, which would eliminate hearing it over and over.

Comments

Sign In or Register to comment.