How do I get the music to play

Get help using Construct 2

Post » Sat Oct 11, 2014 12:16 am

In my project I am trying to make music play in the background from the second the game starts.

However, I can not seem to get it to play. I have imported the music to the music folder, so it should stream. I have added the audio object and made the event "On start of layout - play *audiofile*"
I have also tried other commands to make it play, and also preloading. My project runs in IE, but I have also tried exporting and running it as an exe. file.

Why isn't my music playing?

Thanks for any answers! :)
B
3
Posts: 1
Reputation: 177

Post » Sat Oct 11, 2014 12:42 am

"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
62
S
14
G
2
Posts: 287
Reputation: 6,608

Post » Sat Oct 11, 2014 4:22 am

Make sure you have BOTH a .mp4 AND a .ogg music file or your testing browser may not play your music. There are many free webpage sound/music file converters out these so make your file into both types and import into music folder.

Outside that (which had me stumped for a bit) do like puntodamar said and rtm.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
66
S
17
G
8
Posts: 637
Reputation: 9,370


Return to How do I....?

Who is online

Users browsing this forum: odiusfly and 25 guests