small racing game im working on
Diffstat (limited to 'ui/countdown.tscn')
| -rw-r--r-- | ui/countdown.tscn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/countdown.tscn b/ui/countdown.tscn index 65982eb..acda738 100644 --- a/ui/countdown.tscn +++ b/ui/countdown.tscn @@ -14,7 +14,7 @@ func _ready() -> void: tween.tween_property(counter, ^\"text\", \"[center][b]3[/b][/center]\", duration) tween.tween_property(counter, ^\"text\", \"[center][b]2[/b][/center]\", duration) tween.tween_property(counter, ^\"text\", \"[center][b]1[/b][/center]\", duration) - tween.tween_property(counter, ^\"text\", \"\", duration) + tween.finished.connect(func(): get_tree().create_timer(duration).connect(&\"timeout\", func(): $Counter.text = \"\")) var color_tween := get_tree().create_tween().bind_node(counter) counter.add_theme_color_override(&\"default_color\", Color(\"ff5c3a\")) |