Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Having some issues with my game audio configurations

Author
Message
Sandmanmmm
6
Years of Service
User Offline
Joined: 11th Feb 2018
Location:
Posted: 11th Feb 2018 17:12
For my game i'm using a 2 minute audio file as background music but as you play the game and that 2 minutes goes by the music just abruptly ends. Could someone please help explain to me what I need to edit/add to the code for this to work.

Currently all the code for this function:

Load_Music:
music=LoadMusic("music.wav")
PlayMusic(music)

Return
hendron
8
Years of Service
User Offline
Joined: 20th Dec 2015
Location:
Posted: 11th Feb 2018 20:24
You haven't set the loop flag in your PlayMusic call. Try PlayMusic(music,1)
Sandmanmmm
6
Years of Service
User Offline
Joined: 11th Feb 2018
Location:
Posted: 11th Feb 2018 20:47
Thankyou that worked

Login to post a reply

Server time is: 2024-11-27 20:24:47
Your offset time is: 2024-11-27 20:24:47