A bit help with audio

For questions about using Classic.

Post » Wed Jul 02, 2008 8:49 pm

If this is my game's folder: PhyX
And it consist of 2 Folders : Kuvat and Biisit(songs)
And i want my game to load mp3 from Biisit folder and start playing it.
I was thinkin that is there some way to make it something like this:
"Phyx/Biisit/Lost.mp3"
So i wouldnt need to input the whole thing example:
"C:/Program Files/Phyx/Biisit/Lost.mp3"
Help please! ^^

Sagal
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Wed Jul 02, 2008 9:50 pm

Your .cap is in the Phyx folder, right? Then the relative path to your music is "Biisit/Lost.mp3".

"Phyx/Biisit/Lost.mp3" would point to "C:/Program Files/Phyx[color=#BF0080:56y0lvim]/Phyx[/color:56y0lvim]/Biisit/Lost.mp3".
B
2
S
1
G
4
Posts: 60
Reputation: 1,320

Post » Wed Jul 02, 2008 10:20 pm

Okay ty il try
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Wed Jul 02, 2008 10:31 pm

I just cant get it work some how maybe construct then cant play my songs. They are MPEG 3 Layer.
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Wed Jul 02, 2008 11:45 pm

Only 'Play Music' works with MP3 files. Sound effects have to be PCM WAVs.

Also, I think you should use backslashes (\) not forward slashes (/) for file paths...
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Thu Jul 03, 2008 7:29 am

Got it working!
Thank you Ashley now my work on PhyX Challenges can continue oh one more thing could someone tell me how i can make music player into game? So it changes songs and there would be button to stop it and one button for next song.
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Thu Jul 03, 2008 11:11 am

Well you could just have buttons, which when clicked, pause/play/load new music and plays it.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Thu Jul 03, 2008 5:17 pm

What does autoplay from resource mean? I mean whats that resource?
B
11
S
3
G
4
Posts: 622
Reputation: 3,186


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest