Merge branch 'main' of http://git.nanoyagi.com/NanoYagi/JumpRopeOldTech
This commit is contained in:
commit
87df6cf283
4 files changed
+165
-1
No files matched your search
+4
-1
@@ -37,7 +37,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
|
||||
@@ -47,6 +47,9 @@ func _process(delta: float) -> void:
|
||||
jumps = 1
|
||||
teleport_cooldown = 0
|
||||
|
||||
if fall_timer>3:
|
||||
get_tree().reload_current_scene()
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
|
||||
if not is_on_floor():
|
||||
|
||||
Reference in new issue
Block a user