Playing Sounds and Music through Expressions

Hello, everyone!

I'm currently developing a game that reads through a spreadsheet to determine images. I had hoped to also tie certain sounds to those images, depending on what row the game's currently on. For example, on row 18, the game would display "img-smiley-face.png" and play the sound "sfx-buzz.mp3".

However, I realize there may not be an option to do that the same way you can change the Image attribute via a Change Attribute behavior, i.e. changing an actor's self.Image attribute to tableCellValue(table,row,column).

Does anyone know if there's a way to do this currently?

The only way I can figure to do it now is use a Rule, so that it says when game.Row = 18, play Sound "sfx-buzz.mp3"...but I'd like to avoid that since there are over 2000 lines that would need sound.

Any help or direction would be greatly appreciated!


Sign In or Register to comment.