Can I alternate sounds in GS?

LokitoesLokitoes Member, PRO Posts: 187

Hi all,

So I've been thinking about how it could be possible to use GS to create some interesting effects with loaded sounds - something that is much easier to do in something like javascript. And, well, so far I can't think of anything (please point me in the right direction if you've found anything interesting!), but I do have one question. Say I have an actor that makes a sound when touch is pressed. If that actor is touched, say, three times in a row, can I have three different sounds coming out - one for each press of the same actor? I can see that I can randomise the pitch of the one sound on the 'play sound' behaviour, but is there a way for it to be separate sounds on each touch?

Cheers
Alinta

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881

    Yes -- import the sound files as sound effects (not music). Then you can use multiple play sound behaviors all over the place.

  • ArmellineArmelline Member, PRO Posts: 5,415

    This is pretty easy to do. See the attached demo project for an example of one way of doing it.

  • LokitoesLokitoes Member, PRO Posts: 187

    Thanks guys, sorry for my late reply, too many things to do :( I'll definitely have a play around with this soon. :) Thanks again!

Sign In or Register to comment.