playMaker

Author Topic: Making a jukebox... but it wants to play all the records at once!  (Read 2115 times)

TomEllard

  • Playmaker Newbie
  • *
  • Posts: 9
How do you do.

I have an object that I would like to play some random audio when triggered. That's very easy, I just use the Play Random Sound action. But if my player triggers this again I now have TWO random sounds playing and it goes on from there until you get world's worst DJ.

If I use Audio Stop it will eventually stop at the end of the sound, but what I'd like to do is stop the first random sound immediately before launching the next one. That is stop that sound right away, not all sounds, before starting the next one.

Seems that Play Random Sound isn't really made for that kind of thing. Is there is a general principle to doing this e.g. should I be using Send Random Event?

Thank you.