mirror of
https://github.com/HarmonyHoney/ROTA.git
synced 2026-07-17 16:46:17 +00:00
jump fix(:
This commit is contained in:
parent
283c1a5ee4
commit
e1e8eb102e
1 changed files with 2 additions and 5 deletions
|
|
@ -96,6 +96,8 @@ func _physics_process(delta):
|
|||
|
||||
if test_move(transform, rot(Vector2(0, -1))):
|
||||
jump_clock = 0
|
||||
else:
|
||||
jump_clock = 0
|
||||
|
||||
# hit box
|
||||
if btn.p("action"):
|
||||
|
|
@ -109,9 +111,6 @@ func _physics_process(delta):
|
|||
move_velocity = move_and_slide(rot(velocity))
|
||||
velocity = rot(move_velocity, true)
|
||||
|
||||
|
||||
|
||||
|
||||
# camera
|
||||
camera.position = position
|
||||
|
||||
|
|
@ -124,8 +123,6 @@ func _physics_process(delta):
|
|||
label.text = ""
|
||||
for i in readout:
|
||||
label.text += str(i) + "\n"
|
||||
|
||||
|
||||
|
||||
func _on_PushArea_body_entered(body):
|
||||
if is_floor and body is Box:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue