playMaker

Author Topic: Cycle between 2 sounds  (Read 1971 times)

PET

  • Full Member
  • ***
  • Posts: 139
    • GamerPET
Cycle between 2 sounds
« 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
Technical Game Designer
www.GamerPET.com

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Cycle between 2 sounds
« Reply #1 on: September 02, 2015, 01:43:56 PM »
Hi,
Search for "Random Sound No Repeat" on the EcoSystem

and uncheck repeat when you use the action.

PET

  • Full Member
  • ***
  • Posts: 139
    • GamerPET
Re: Cycle between 2 sounds
« Reply #2 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?
Technical Game Designer
www.GamerPET.com

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Cycle between 2 sounds
« Reply #3 on: September 03, 2015, 05:44:30 PM »
Hi,
i just tested it and it should work,
it should be under 'Audio'

PET

  • Full Member
  • ***
  • Posts: 139
    • GamerPET
Re: Cycle between 2 sounds
« Reply #4 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 :)
Technical Game Designer
www.GamerPET.com