This is an automated archive made by the Lemmit Bot.

The original was posted on /r/godot by /u/vinnyariel on 2023-08-06 16:11:00.


Hi, I’m trying to create a rhythm game, where things interact within the rhythm (BPM) of the music. It will be a platform game, where the projectiles will shoot within a certain rhythm, like in the PS3 game Sound Shapes

  • Here’s an example: An enemy that releases spores every “snare” of the music, i.e. on the second and fourth beat of a 4-beat tempo [-x-x]
  • Another example: a Boss that fires projectiles in rhythm with the song’s melody (let’s assume it’s 122 BPM).

My question is HOW DO I MAKE SOME KIND OF METRONOMO TO SYNCHRONIZE GAME ACTIONS (triggers) SO THAT I DON’T LOSE THE RYTHM IN ANY IPOTHESIS???

please, I’ve been trying for months to create a metronome that does not have performance and rhythm failures

  • I am using Godot 4.1.1

I made a metronome that works to some extent. When I minimize the game window, it gets out of sync (rhythm) and everything is a mess. How do I fix this? This is my current metronome:

my simple metronome

---------- Post update ----------

The metronome is partially functional. However, when I right-click under the game window, for some reason the metronome stops (and loses the rhythm), but the music does not. The metronome is inside func _process(delta) and I’m not using Timers, only the AudioStremPlayer node.

the metronome problem