This is code for the timeout :
func _on_CountDownStart_timeout():
print("Hello")
var temp = int($CountDownStart/Background/Count.text) - 1
audio_count_down_start.play()
if temp == 0:
$CountDownStart.stop()
$CountDownStart/Background/Count.visible = false
$CountDownStart/Background.visible = false
audio_count_down_start.stop()
remove_child(audio_count_down_start)
audio_count_down_start.call_deferred("free")
if isRoundContinue:
_continue_Round()
else :
_start_game()
$CountDownStart/Background/Count.text=str(temp)
The first print statement in the function only prints twice and not a third time as expected(after loading save data). It is almost as if the function is never called the third time.