When giving a speed of 10 to the player and moving around, it seems like the engine runs 100 frames per second. So I decided to print the fps, which resulted into 1.
So then I decided to use deltatime, and by adding deltatime the game went from extremely fast to extremely slow. Now I need to give my player a speed of 100 to make him move with decent speed. But when I printed deltatime, it resulted in 1.6
I'm really confused right now. To make the question more clear and for me to have a clear answer. How do I make a timer of 15 seconds.
Code: Select all
--60 being the frames per seconds
timer = 15 * 60
timer = timer - 1 * 60