How do I make a music player inside the game

Get help using Construct 2

Post » Sun Aug 07, 2016 4:48 pm

So, I am making a game where the player can change the background music, I already have them imported into construct and I want to make in the HUD, a display, it shows the buttons (play, skip, stop, etc...) and I want this to have a display where the name of the music appears, kinda like in Need for Speed when the music track changed and the name of the music, artist, album etc, appeared
B
6
S
1
Posts: 13
Reputation: 376

Post » Sun Aug 07, 2016 4:52 pm

B
79
S
8
G
1
Posts: 30
Reputation: 3,741

Post » Sun Aug 07, 2016 4:54 pm

Create a global variable for playlist number. Imagine them in a playlist each with an allocated number. Put some buttons on the layout. Set your logic to if(Global Variable=1), Play > Song1, if(2), Play > Song2, if(3), Play > Song3 etc. When stop is pressed, Stop current audio. When play is pressed, Continue playing current audio.(global variable will already be set). To display song name you need a text box that displays Song.Name and fit that into the previous logic. If skip is pressed then increase global variable by 1, will play next song. If prev is pressed, reduce global variable by 1, will play previous song.
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests