Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: PET on September 02, 2015, 08:43:27 AM

Title: Cycle between 2 sounds
Post by: PET on September 02, 2015, 08:43:27 AM
Hello,

I have a normal walking state machine.

I have 2 different foot steps (2 files). After each step I do a LOOP to see if I'm still moving. If I am I go back to the walk state (which is making the sound).

I want to cycle between the 2 sounds I have.

Sound 1 - Loop-Check - Stound 2 - Loop-Check - Sound 1, etc

How can I do this? I have that Play Random sound thing but the Random thing sometimes picks the same sound.

Thanks
Title: Re: Cycle between 2 sounds
Post by: djaydino on September 02, 2015, 01:43:56 PM
Hi,
Search for "Random Sound No Repeat" on the EcoSystem (https://hutonggames.fogbugz.com/default.asp?W1181)

and uncheck repeat when you use the action.
Title: Re: Cycle between 2 sounds
Post by: PET on September 03, 2015, 04:26:41 AM
Thanks. I found it and installed it however it does not appear on the list.
Any ideas why?
Title: Re: Cycle between 2 sounds
Post by: djaydino on September 03, 2015, 05:44:30 PM
Hi,
i just tested it and it should work,
it should be under 'Audio'
Title: Re: Cycle between 2 sounds
Post by: PET on September 04, 2015, 04:39:39 AM
Those Murphy's Laws are incredible...
I just re-opened the project and I can see it now. Works fine ... thanks :)