Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Amazing! Wish I did the same mechanic on my game, how did you do it? Like how did you get the bpm from the music? Are you guys using midi files, or extracting the beats directly from a mp3/wav?

(1 edit)

Thanks for playing!

@IceFROTTEE wrote the music to a specific tempo - then we repeatedly fire an event when one bar is complete by checking the audio playback time and doing some math with the BPM.

It’s a bit finicky. Very easy to have it go out of sync. To keep it in sync we get the time from the audio track samples directly, and make sure that if we check the time a bit too late (if the update loop misses the exact beat time) we subtract however much time we are over the beat.

So far by doing that the beat events will fire reliably in time with the music. IDEALLY it would have been super cool to use some charting software like Moonscraper but it was a bit too intense to integrate in the time we had :D