How do I inport music to Construct

For questions about using Classic.

Post » Mon Mar 28, 2016 11:32 am

I have a problem with importing music to the program. I don't know how to do it, I'm looking for guidance and information is there but I can't add music because it shows me the message "bad chosen path." I'm using the "Start of layout", then I choose XAudio22 then choose the option play, or "play for music file". I have a .wav and .mp3 .ogg. I'm always add my music files to "Music" or "Sound" directory. I'm use lat version of Construct, not Construct 2.
B
3
Posts: 2
Reputation: 179

Post » Mon Mar 28, 2016 12:00 pm

*moved to the correct Construct Classic section, as nothing to do with Construct 2.

Hopefully someone who still uses this (now retired) software will be able to respond in detail, but I have come across an old example that just referenced a folder of 'wavs' using the expression:

Code: Select all
AppPath & "\sounds\fastinvader4.wav"


Maybe this is an idea you can try?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Mon Apr 04, 2016 5:22 pm

Sorry, but It's doesn't working...
B
3
Posts: 2
Reputation: 179

Post » Fri Apr 22, 2016 11:41 pm

Download the Construct Classic examples kit in my signature, I think I have some sound file examples there. Otherwise you can also download the entire source to my I Had Hope alpha made in Construct Classic on that blog, which will definitely have code for playing audio from a file.

In the example Zenox98 says, the music and sounds have to be in a folder called "sounds" that is at the same level as the game project file (.cap) or exectuable (.exe) when exported.

Hope that helps!
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit
B
113
S
39
G
17
Posts: 2,183
Reputation: 19,215


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest