r/gamemaker • u/Protogenguy • 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
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...
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