How do I add background music?

Get help using Construct 2

Post » Fri Jun 10, 2016 8:49 am

Armouredank wrote:Wait a second. Is it because my sounds are mp3s?


DO NOT USE MP3s IN YOUR PROJECT
>>>>>>
Why ?
>>>>>>
read this blog Why you shouldn't use MP3 in your HTML5 games
Image
B
68
S
40
G
48
Posts: 680
Reputation: 34,066

Post » Fri Jun 10, 2016 9:01 am

Armouredank: Yes, it is likely not working because your sounds are MP3.
As you can see in the manual article about the audio object, sound format is supposed to be ogg and m4a.
Depending on your OS the conversion can be automatic, but MP3 is such a legal mess (read 1, 2, read about the HTML5 audio formats : 1, 2) that it was not recommended by Scirra.

Moreover, prefer importing music into the "Music" folder, not the "Sound" folder unless you know what you are doing (which, no offence, doesn't look like the case at the moment). Again, please refer to the manual (this article in this case).

Inverting is done by right-clicking a condition and selecting "Invert" in the appearing contextual menu.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
293
S
117
G
96
Posts: 7,310
Reputation: 71,069

Post » Tue Jun 14, 2016 10:40 am

can you send a pic of your code?
B
6
Posts: 46
Reputation: 336

Post » Tue Jun 14, 2016 11:56 am

Armouredank wrote:can you send a pic of your code?


Image

Image
Image
B
68
S
40
G
48
Posts: 680
Reputation: 34,066

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 36 guests