0

How to make an accurate metronome?

Galaxxxy 3 years ago updated 3 years ago 2

Hello,

I am creating a game based on rhythm  with Bolt, 

for my game I need a very precise metronome , my  attemp with bolt is not working propely because it is not precise at all , I think that this is due to the fact that the framerate is not a perfect 60fps, so the script rapidly desynchronize with the music ,

is there is a way to make this metronome precise ? 

here's my script


Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
+1

Perhaps using fixedupdate event instead update event?

Thank you for your help,

with fixed update , everything is fine,

For thoose who are interested i have simplified the script , see below :


0.4 is the time between each Beats with a BPM of 150

Thank you again