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.

Dark GDK / Problems with dbPlayMusic only playing once

Author
Message
Noley
13
Years of Service
User Offline
Joined: 13th Dec 2010
Location:
Posted: 5th Jan 2011 11:19 Edited at: 5th Jan 2011 11:21
Hello everyone, I have been playing around with music today for my game... I wrote up a bit of code that was supposed to cycle through a selection of music based on the Location of the player in my game...

When I used dbPlayMusic() it played every song once but when it came back to the first song it played it just stops and doesn't keep cycling...

If you want to see the code I used:



So I'm wondering is there something with dbPlayMusic that only allows it to play once ? Or is there a specific way to do it that I'm not aware of ? x.x

Thank you in advance
Yero008
13
Years of Service
User Offline
Joined: 5th Dec 2010
Location: Romania
Posted: 5th Jan 2011 12:30 Edited at: 5th Jan 2011 12:30
You could try using dbLoopMusic(id);
Noley
13
Years of Service
User Offline
Joined: 13th Dec 2010
Location:
Posted: 5th Jan 2011 22:50 Edited at: 6th Jan 2011 06:03
I'm still not getting the functionality that I want.

Should I just take all of the mp3 files from each location to an audio editor and make one giant master mp3 file for each location and just Loop that while they are in each location ?

Edit:
Well since no one has really said anything, I guess I'm just going to make one big mp3 out of all the tracks for each area and dbLoopMusic() the mp3 while they are there.

Login to post a reply

Server time is: 2024-11-19 14:53:33
Your offset time is: 2024-11-19 14:53:33