Variable getting reset

Godot Version

Newest

Question

I’m new to godot and I’m trying to create a timer float variable, and when I use the print function, it prints 0, new line, 0, new line, actual time, and then loops. Any help will be hugely appreciated.

You can use Timer node or “await”
example “await” code :

await get_tree().create_timer(1).timeout
# Your Codes

Dont use await in “_physics_process” or “_process”

If your problem is time-related

Can you show your code? That will make it easier to help.