Playing a random sound based on a call to a table.

entersimonentersimon Member, PRO Posts: 273

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

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    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.

  • tintrantintran Member Posts: 453

    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.

Sign In or Register to comment.