Sometimes i get the error :
"Attempt to call function createtimer in base null instance on null instance"
And it comes from yield(gettree().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