Skip to main content

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

Nahh magical numbers are the lifeblood of rapid iteration and design! Don't worry about perfect code, worry about having a fun game! No one notices magic numbers, they notice magic experiences. How'd you go with timing the attack on the beat?

youre right, this is not the right time for perceptionism I will go all in with the feeling!
for we to sync timing on beat we need a single source of truth script, a Conductor, he is responsible for the beats and related stuff, with a function to play the song he receives the bpm, start playing the song and tracking the song position, converts it into beats based on the bpm song_position / 60 / bpm,  with that in hands we can check which beat we are in and call, wait to reach certain beat in a position on the song and etc, its easy to check if the input was pressed next to a full beat and create patterns based on the current beat after that

(+1)

that's true, sounds like you're onto it! well remember to take it in small steps and post progress screenshots often 😁