• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Get all sounds added to project

Juanla

Member
Hello all!

There are a way to get all sounds added to the project (in array or list form)? The way that I can think is about create my own list with all sounds and use it, but I am asking for something "generic".

Thanks!
 

obscene

Member
Asset IDs are numbered starting at 0. First are all the sprites and next are sounds. So start at 0, use asset_get_type() and increment until the function returns "asset_sound". Then start filling an array with the IDs as you increment until asset_get_type() no longer returns "asset_sound."
 
Top