Timed switching brought back. Added waiting for sprite emit finishing for player switching

This commit is contained in:
2026-06-14 19:16:31 +03:00
parent ed657514a3
commit 95539bcf5d
2 changed files with 37 additions and 5 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ func _physics_process(delta: float) -> void:
func _input(event: InputEvent) -> void:
if event.is_action_pressed("switch_color") and can_switch_color:
if event.is_action_pressed("switch_color") and can_switch_color and not particles.emitting:
_switch()