Playing a random sound based on a call to a table.
Hi there! It's been a long time since I've posted on here! I've got a new project I'm working on and I would like to use gamesalad for the mockup and possibly for the final product, but I need to know if it's possible to call a sound from a table. The reason why is that I need to be able to randomly choose from about 200 different sounds without repeating a single one, and nesting 200 rules for randomized audio playback within an actor is terribad for performance and load times. I remember this being talked about and requested back in 2012, and I was wondering if the feature made its way into the program. Any assistance I can get would be very appreciated! Even if it's not a direct feature, if there is a new workaround for this that isn't so resource intensive as a ton of "if random # = __ then play _.ogg" rules, that would work too. Thanks!
Comments
Hey man,
Great to see you again!
Unfortunately, this hasn't made it into the engine...yet. I think there is an official feature request for it, though, so it will probably make it in one day.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
can't wait for this feature.
I imagine it would allow an expression that could be a name of a sound instead of selecting from a list of sounds so that we can use table values like how self.image can be set to a value from a table that is the name of an image.