Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

random audio

rivetopiarivetopia Posts: 12Member
any suggestions for having a button trigger random audio files


  • quantumsheepquantumsheep Posts: 8,188Member
    Make an attribute that's an integer. Call it 'Sound' or something.

    Make a button actor.

    Have a rule in this actor that says:

    When mouse is over actor
    When mouse is down

    Change attribute 'Sound' to (function) Random (1,10)

    Then have a rule within this that says If attribute Sound = 1 then play this sound.

    Repeat for other sounds

    That should do it - making a fart sim perchance? ;)

    Dr. Sam Beckett never returned home...

  • rivetopiarivetopia Posts: 12Member
    Thanks, quantumsheep, That worked perfect.
  • ZillaZilla Posts: 157Member
    Is there no shorter way like the one with the image attribute:
  • StrobanikStrobanik Posts: 77Member
    Zilla.. I would like to know that too. But I don't think so, since you can't tie a sound to an actor like you do with images...

    But it would be great if you could do it in som other clever way. Anyone?
  • spaceneedlespaceneedle Posts: 93PRO
    No, I don't think you can. It would really simplify rule sets for sound board apps, rather than having a special button for every sound with a rule set.
This discussion has been closed.