Multiple sounds

creptoo59creptoo59 Member Posts: 3
How can I add more that one sound to an actor and have it play each sound randomly when touched?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Make a self attribute - call it 'sound'

    have a rule: When actor is touched

    Change self.sound to random (1,3)

    Then a timer

    After .1 seconds

    New rules:
    If self.sound = 1
    Play Sound 1

    If self.sound = 2
    Play Sound 2

    If self.sound = 3
    Play Sound 3
Sign In or Register to comment.