We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d70659c commit 7a7814cCopy full SHA for 7a7814c
game_boards/all_common/common.gd
@@ -90,13 +90,8 @@ func highlight_first_swap(hbox:HBoxContainer) -> void:
90
highlight_gem1.highlight()
91
highlight_gem2.highlight()
92
# Optionally set a timer to remove highlight after a few seconds
93
- var timer = Timer.new()
94
- timer.wait_time = 3.0 # 3 seconds
95
- timer.one_shot = true
96
- timer.autostart = true
97
- timer.connect("timeout", self._on_HighlightTimer_timeout)
98
- add_child(timer)
99
- timer.start()
+ await delay_time(hbox, 3)
+ _on_HighlightTimer_timeout()
100
101
func _on_HighlightTimer_timeout():
102
if highlight_gem1 and highlight_gem2:
0 commit comments