playMaker

Author Topic: Play Random Audio From Array  (Read 3909 times)

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Play Random Audio From Array
« on: September 28, 2016, 07:27:07 AM »

Will randomly play audio clips from a native Playmaker Array- make sure the array variable type is set to Object- then UnityEngine/AudioClip

I made this to play footsteps in my game- hope its useful  :)

Its on Ecosystem and Snipt https://snipt.net/raw/865df3651da9bd4b42f670f0b44c3462/?nice
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Play Random Audio From Array
« Reply #1 on: September 28, 2016, 11:24:34 AM »
cool thanks

iEpic

  • Playmaker Newbie
  • *
  • Posts: 48
    • IndieGamerWorld
Re: Play Random Audio From Array
« Reply #2 on: January 25, 2017, 05:28:22 PM »
i'm not finding it in the ecosystem and the link you gave is bad.

BTW I love how you named your audio array "daClips"

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Play Random Audio From Array
« Reply #3 on: January 25, 2017, 08:28:14 PM »
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!