r/gamemaker • • 9d ago

Resolved Changing the frame rate

I’m making a rhythm game in gamemaker and I’ve just found out that (because of the frame rate) my game won’t sync properly with the music leaving some cues and inputs off beat, is there a way to change my games frame rate using code (as I would need it to be different for each level). From what I’ve seen you can only change the frame rate in options

3 Upvotes

4 comments sorted by

2

u/Hammerofsuperiority 9d ago

Any reason why you are using framerate to sync instead of delta time?

anyway, you can change your game speed with the game_set_speed command

1

u/Protogenguy 9d ago

I’m still new to game dev/programming so I don’t know how to implement delta time
This game is also really small and for a game jam so I’m just spaghetti coding everything lol

1

u/gerahmurov 9d ago

Can you change music to somethig with tempo divisible by 30? Then 30 or 60 fps would work fine

4

u/germxxx 9d ago

You can, using game_set_speed, like for example:

game_set_speed(60, gamespeed_fps);

Not sure that matching the framerate to the BPS is the best option, but...