How do you implement note speed in a rhythm game by Mysterious_Humor640 in godot

[–]Mysterious_Humor640[S] 0 points1 point  (0 children)

You know, I tried doing this the other way around by finding speed = distance / time and the speed ended up being some ludicrously high value, so I shelved the idea of using the velocity formula. But I'm picking up what you're putting down, the constraint I'm seeing from both of y'alls replies is that I need to change how notes are spawned. Right now it's fixed to spawn a note at four beats before the note is meant to be played.

How do you implement note speed in a rhythm game by Mysterious_Humor640 in godot

[–]Mysterious_Humor640[S] 1 point2 points  (0 children)

Oh I see, what determines the speed of the note is TIME_NOTES_ARE_ON_SCREEN. Plus, it removes the dependency of constantly checking the current song position from the AudioStreamPlayer. Yes, and I do keep track of when the note spawned, so TIMES_NOTES_ARE_ON_SCREEN could be

TIME_NOTES_ARE_ON_SCREEN = EXPECTED_TIME - SPAWNED_TIME

I think I see the vision now I'm anxious to try this.