playMaker

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

mdotstrange

  • Hero Member
  • *****
  • Posts: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Play Random Audio From Array
« on: September 28, 2016, 04: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
    • View Profile
Re: Play Random Audio From Array
« Reply #1 on: September 28, 2016, 08:24:34 AM »
cool thanks

iEpic

  • Playmaker Newbie
  • *
  • Posts: 48
    • View Profile
    • IndieGamerWorld
Re: Play Random Audio From Array
« Reply #2 on: January 25, 2017, 03: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: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Play Random Audio From Array
« Reply #3 on: January 25, 2017, 06:28:14 PM »
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!