fixed an issue where you could re-enter pipes, while exiting them, by spamming down

This commit is contained in:
JHDev2006
2025-10-13 19:25:32 +01:00
parent a9055451ae
commit 455aa14b35
2 changed files with 30 additions and 28 deletions

View File

@@ -64,6 +64,7 @@ func update_visuals() -> void:
hide()
func exit_pipe() -> void:
can_enter = false
pipe_exited.emit()
for i in get_tree().get_nodes_in_group("Players"):
i.go_to_exit_pipe(self)
@@ -71,6 +72,7 @@ func exit_pipe() -> void:
await get_tree().create_timer(0.5, false).timeout
await i.exit_pipe(self)
exiting_pipe_id = -1
can_enter = true
func get_vector(direction := 0) -> Vector2:
match direction: