toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Art, Graphics, Music and Sound
Multiple sounds
creptoo59
Member
Posts:
3
June 2011
edited November -1
in
Art, Graphics, Music and Sound
How can I add more that one sound to an actor and have it play each sound randomly when touched?
Comments
quantumsheep
Member
Posts:
8,188
June 2011
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.
Comments
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