can I get EXACTLY 60 fps in my pygame game?
Ok, I’ve been testing a game I’ve made, and everything is fine! everything works as it should, except that… there is an animation synchronized with music, this animation runs at 30 fps, so I have a code that makes this one to run at 30 fps in an environment of 60, the problem is that… Pygame sometimes goes over 60 fps, going to 61 and 62 constantly, and although it seems negligible, this ruins my sync, so I was wondering if there was a way to force an exact amount of fps, since even setting the fps to 59 makes it go up.
Pygame.time.Clock trouble
I’m new to pygame, and I’m trying to make a flappy bird clone I’m using pygame.time.Clock at 20 fps, so that the bird moves at a reasonable pace, but the problem is if I spawned in a pipe every tick it would spawn far too many. is there a way to operate on some ticks but not others or have 2 different game clocks?