Climb edge now directional

This commit is contained in:
Dustin 2025-03-30 11:40:59 -07:00
parent 7e9227064b
commit adebb005ab

View File

@ -276,10 +276,10 @@ func _state_process_physics_ledge_climb():
if parent.is_on_wall() == true:
#velocity = parent.move_and_slide(Vector2(10.0,-60.0),Vector2.UP)
parent.move_and_slide(Vector2(10.0,-100.0),Vector2.UP)
parent.move_and_slide(Vector2(sign(parent.transform.x.x) * 10.0,-100.0),Vector2.UP)
else: #parent.is_on_floor() == true:
#velocity = parent.move_and_slide(Vector2(10.0,10.0),Vector2.UP)
parent.move_and_slide(Vector2(60.0,10.0),Vector2.UP)
parent.move_and_slide(Vector2(sign(parent.transform.x.x) * 60.0,10.0),Vector2.UP)
#velocity = parent.move_and_slide(Vector2(60.0,-60.0),Vector2.UP)
# if parent.is_on_wall() != true: