Climb edge now directional
This commit is contained in:
parent
7e9227064b
commit
adebb005ab
|
|
@ -276,10 +276,10 @@ func _state_process_physics_ledge_climb():
|
||||||
|
|
||||||
if parent.is_on_wall() == true:
|
if parent.is_on_wall() == true:
|
||||||
#velocity = parent.move_and_slide(Vector2(10.0,-60.0),Vector2.UP)
|
#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:
|
else: #parent.is_on_floor() == true:
|
||||||
#velocity = parent.move_and_slide(Vector2(10.0,10.0),Vector2.UP)
|
#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)
|
#velocity = parent.move_and_slide(Vector2(60.0,-60.0),Vector2.UP)
|
||||||
# if parent.is_on_wall() != true:
|
# if parent.is_on_wall() != true:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user