Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Silicon Power on April 30, 2021, 05:15:34 AM

Title: How can I get an audio clip name?
Post by: Silicon Power on April 30, 2021, 05:15:34 AM
I have an audio clip array and need to get name of each clip but there is no action for this! Get name action dose't work to get an audio clip name
Title: Re: How can I get an audio clip name?
Post by: Weak Interactive on April 30, 2021, 01:46:15 PM
Hey,

So... the easiest method I can think of would be to use Array Maker. It has an "Array List Contains Name" action.

You can create an array with every audio clip name, and then cycle through them checking which are contained within the Array List (of audio clips) and getting their indexes.

Not a great solution, but that's probably what I would do.

A "Get Audio Clip Name" action would be ideal here, but I couldn't find one.

Maybe requesting it would be the best option: https://hutonggames.com/playmakerforum/index.php?board=8.0

Good luck.
Title: Re: How can I get an audio clip name?
Post by: Silicon Power on April 30, 2021, 06:32:30 PM
Hey,

So... the easiest method I can think of would be to use Array Maker. It has an "Array List Contains Name" action.

You can create an array with every audio clip name, and then cycle through them checking which are contained within the Array List (of audio clips) and getting their indexes.

Not a great solution, but that's probably what I would do.

A "Get Audio Clip Name" action would be ideal here, but I couldn't find one.

Maybe requesting it would be the best option: https://hutonggames.com/playmakerforum/index.php?board=8.0

Good luck.

Thank you. I hope someone create this Get Audio Clip Name action.