Here’s the general idea:
Each level/stage in my game would have a “song” that progresses with the player. Example, the song begins with a drum track, if all goes well after a while then the bass track adds up, then the guitar, etc… If something goes bad then you go back a section or even to the start of the song… You get the idea.
What I’ve tried so far:
- I have imported each section of my song as separate wav files so that each section can loop perfectly.
- I’ve created a blueprint with audio components for each song section.
- It starts by playing the first section.
- I’ve put a custom event call that triggers at the end of the section.
- This custom event decides if it continues to the next section or if it replays the first section.
This works… Except that it introduces a slight delay between the sections even though they should loop/merge perfectly…
Another thing I want to do is perfectly sync some visual aspects of the game to the music. A light that flashes on each beat for example…
Any help/guidance on the best approach to achieve this would be much appreciated.
Thanks!
Hugo