Creating a timer with await is incredibly buggy (gdscript)

Godot Version



I’m making a project which requires the use of await for a small delay. The timer is as follows:

await get_tree().create_timer(0.1).timeout

this is a normal timer but it causes the player to glitch out when used.

no video perms so description: the player goes a bit under the ground and inches to the left a bit before performing the jump action even though the jump happens before the timer.

You did not provide enough information. We can’t see your project.

I highly doubt the issue is with the timer though.

I don’t think the timer is buggy. Maybe you just don’t use it properly. If you added this line to _process(), it can lead to unexpected behavior, as this function is called on every frame.