Okay so, my new project is planned to have a rhythm-game, here's how I want it to work: My character's sprite goes forward automatically and has an hitbox of 1 pixel of width. Every 25 pixels, there's another sprite placed and when the two sprites collide, it does an cowbell sound. I want my character to move so that the cowbell's tempo is set to 175 bpm. Problem is, it's always thrown off-tempo after half a minute and I've did so much trial and error that I've put this part of the game on hold at the moment. So, to anyone who already did an rhythm-based game, anybody would have an idea of how to make this work (Like an idea of how to calculate the speed needed for my character) or if you have a better alternative?