How do I know when a sound file is preloaded?

0 favourites
  • 1 posts
From the Asset Store
Grenade Sound Library contains: 135 sounds 50 grenade sounds and 85 surface sounds
  • Might be a bit weird question but I was wondering if there's a way to know when a sound file has been preloaded? For debug purposes.

    I have different "sound packs" for different levels which are preloaded when player clicks to start a level. I'm calling the sound files using variables and FOR statement so I don't know how I would bug test to see if the sounds are preloaded or not.

    This is how it goes:

    1) Player starts the game. No level sounds are preloaded

    2) Player selects a level 1-> Preload sound files

    The sound files are named like this: "level1_1.ogg" "level1_2.ogg" etc. so I can dynamically load all the sound files using variables.

    I couldn't find any indication of preloaded audio when launching the project with debugger so I'm guessing there isn't a way to check preload status. "On Preload Complete" is of course something that works but that only tells if all the preloads are done.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)