A mini demonstration of coroutines in Godot Engine. The light changes every few seconds going from green to yellow to red. The light will change to the next color instantly if the walk button is pressed.

See? I can write code that not only waits and resumes but also is affected by player actions.

Leave a comment

Log in with itch.io to leave a comment.