- Home /
Question by
michaelmadnesss · Jun 09, 2021 at 12:17 AM ·
c#rhythm
How to line up a certain animation to the beat of my music (C# Question!!)
Hey! So I'm trying to make a rhythm game, I'm still learning but all seems to be going well.
So I've made "Up", "Down", "Left", and "Right" animations for my character, along with an "Idle" animation, for when you're not pressing any buttons/notes.
I got my buttons working well, but the idle animation plays after the end of each of the button animations, and the result is the idle animation not syncing to the beat of the music. I have my first song/level at 120 bpm.
I want the idle animation to play 2 times every second, synced with the beat of the music, even after the buttons are pressed.
does anyone know how to set this up? I'd like to be pointed in the right direction.
Thank you :)
Comment