|Topic was automatically imported from the old Question2Answer platform.
Sometimes i get the error :
“Attempt to call function create_timer in base null instance on null instance”
And it comes from yield(get_tree().create_timer(0.2),“timeout”)
What are the situations when get_tree() returns null ? Error happens in the middle of game, everything is ready for a long time, this code is not in Autoload… I use yield with dynamic timers everywhere in my code and it generally works