How do I play a music from File Chooser

Get help using Construct 2

Post » Fri Sep 16, 2016 11:02 am

Hi, i want to make a program ( if i can with C2) to select a track from a folder and to play it, simple as that, but i can't do it with file chooser.
I tried to take the track url and to run it with nw.js but that doesn't worked.
Any suggestions ?
B
11
S
3
Posts: 277
Reputation: 1,395

Post » Fri Sep 16, 2016 11:58 am

hi, when you import your music files with construct 2, after you have chosen the conditions to play musics, add as action : play music (or sound) : random("nameofmusic1", "nameofmusic2", etc...) Construct 2 will chose randomly the music.
B
8
S
1
Posts: 17
Reputation: 474

Post » Fri Sep 16, 2016 5:45 pm

KnightStudio wrote:hi, when you import your music files with construct 2, after you have chosen the conditions to play musics, add as action : play music (or sound) : random("nameofmusic1", "nameofmusic2", etc...) Construct 2 will chose randomly the music.

Yes, but i can't use mp3, isn't it ?
B
11
S
3
Posts: 277
Reputation: 1,395

Post » Sat Sep 17, 2016 3:50 pm

yes construct will convert them into ogg or aac
B
8
S
1
Posts: 17
Reputation: 474

Post » Wed Sep 21, 2016 10:26 am

@KnightStudio
It will automatically ?
i must not convert them ?
B
11
S
3
Posts: 277
Reputation: 1,395

Post » Sat Oct 01, 2016 4:17 pm

sorry i said a mistake, not random ("nameofmusic1" etc..) but choose("nameofmusic1", "etc...") and yes construct 2 will convert them
B
8
S
1
Posts: 17
Reputation: 474


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests