restart condition added

+zoe level
This commit is contained in:
zozieee committed 2026-10-16 20:26:07 -05:00
1 parent 9a2e3d8b58
commit f7dc8ef212
3 files changed
+93 -1

No files matched your search

+4 -1
View File
@@ -32,7 +32,7 @@ func _process(delta: float) -> void:
else:
velocity.x = move_toward(velocity.x, 0, SPEED)
fall_timer += 0.001
fall_timer += 1*delta
if is_on_floor():
fall_timer = 0
jumps = 1
@@ -40,6 +40,9 @@ func _process(delta: float) -> void:
if is_on_wall():
jumps = 1
if fall_timer>3:
get_tree().reload_current_scene()
func _physics_process(delta: float) -> void:
if not is_on_floor():