How do I Get Background Music To Load Consistently?

0 favourites
  • 3 posts
From the Asset Store
Progress\Loading Bar. Now Load you game like a Professional.
  • What is the recommended way to get background music to load consistently?

    I have background music imported to the music folder. I tried loaded it on start layout, I also tried having preload of the music on load, then once preload is done to play the background music. In both scenarios, with edge, chrome, and windows phone the music does not always load. If I reload the continuously, it sometimes starts playing and othertimes does not.

    Does anyone have any suggestions on making the background music load more stable?

    If it helps, the background music is a constant loop of a 5 second clip.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [quote:3e0r95ux] I tried loaded it on start layout, I also tried having preload of the music on load, then once preload is done to play the background music.

    are you reloading music? actually, music should be loaded just once. If you load music again, i think it will flush out music data that has already been loaded and start over.

    For streaming, if the Internet connection is bad, there are chances that music streaming will not be stable.

    Since your music is just 5 seconds loop, I suggest putting this sound as sound effects instead. That way, this sound will be loaded as a whole and not as a stream. In addition, if you have "preload all sounds" on, you should be able to play this sound without any problem from now on. Unless C2 has trouble loading it up in the beginning because of unstable connection.

    I believe C2 should keep on trying loading all the sounds listed as sound effects until all sounds are loaded. Only then, will the game start.

  • Ill try switching it to a sound effect instead of music, thanks

    as for connection. that cannot be it. 2 MS ping, plus running locally.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)