Platform Builder Forums

Help and Support => Working with Platform Builder => Topic started by: Kemuja on July 05, 2021, 11:59:49 AM

Title: Is there a mechanic to loop the music at a specific point?
Post by: Kemuja on July 05, 2021, 11:59:49 AM
I've heard few game's OSTs, that has a normal start, but when it reaches end, it would loop at a specific point of the music (or like a "Loop point")

Does Platform Builder have this mechanic?
And if not, this would be nice to have, even if most may not utilize it due to the difficulty.
Title: Re: Is there a mechanic to loop the music at a specific point?
Post by: warrior on July 05, 2021, 12:38:19 PM
I didnt used PB since over 4 months but im still 99% sure custom loop points arent implemented. I heard there's an universal method that consists of directly altering the file to choose a custom loop point but I never tried this myself
Title: Re: Is there a mechanic to loop the music at a specific point?
Post by: Gizgord on July 05, 2021, 02:05:45 PM
PB doesn't have that feature. for my game, I just cut the music into two tracks and activated them with a timeline
Code: [Select]
00:00:00 - music = upload [ID]
//the beginning of your song
00:30:00 - music = upload [ID]
loop music = true
//the looping part
Title: Re: Is there a mechanic to loop the music at a specific point?
Post by: warrior on July 05, 2021, 02:52:18 PM
PB doesn't have that feature. for my game, I just cut the music into two tracks and activated them with a timeline
Code: [Select]
00:00:00 - music = upload [ID]
//the beginning of your song
00:30:00 - music = upload [ID]
loop music = true
//the looping part
@Gizgord I though about suggesting something like that but I didnt know if it would break for example if the player pauses. Is it the case?
Title: Re: Is there a mechanic to loop the music at a specific point?
Post by: Gizgord on July 05, 2021, 03:57:42 PM
@Gizgord I though about suggesting something like that but I didnt know if it would break for example if the player pauses. Is it the case?
yeah, it breaks... a little oversight on my part. you could disable pause until the first track is finished (which sounds silly), or maybe add 'loop music = false' to the first event. then you'll potentially play in silence, but at least the song's not gonna randomly cut off
Title: Re: Is there a mechanic to loop the music at a specific point?
Post by: Tarkus1971 on July 22, 2021, 03:28:20 PM
so .ogg music files do not automatically loop after the tracks end. Hope this is fixed, that is pretty much what I need for my music files.