How to wait some time in raylib? #2537
-
Hello, I am a beginner. Is there time wait function in raylib, like SDL's SDL_Delay function? |
Beta Was this translation helpful? Give feedback.
Answered by
quantumedbox
Jun 23, 2022
Replies: 3 comments 4 replies
-
void WaitTime(double seconds) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
wlxmhls
-
you can use the counter of the mainloop as a timer. If you SetTargetFPS(60), then each running of mainloop means 1/60 second passed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rcore.c
defines: