How to change frame rate?

Hello guys, I am trying to create a snake game but i have a problem with frame rate. I want my snake to move cell by cell. i tried to use hxd.Timer.wantedFPS = 10; in init() function of Main.hx but it didn’t work. Thank for helping :slight_smile:
(and I’m sorry for my bad English).

One way to do that is to only update your game loop 10 times per second instead of every frame. You will have to handle that on your own in hxd.App.update

1 Like