#Is there a way to await timer ends?
5 messages · Page 1 of 1 (latest)
You could store a Timer in a resource and use that to dictate which systems run when
That could work but it would surely make the code much harder to write and unreadable when I need to wait a lot of timer. (already a lot of thread::sleep in my previous code)
I'm quite new to bevy too, but the way I understand it, you should write a system that chacks every frame if your timer has completed.
For example, this tutorial https://bevy-cheatbook.github.io/features/time.html suggests that you need to both progress the timer with the delta time and check if it has finished "manually".