Ladder behavior tweak.
This commit is contained in:
parent
6ed2e86806
commit
8de3fc1060
|
|
@ -477,7 +477,11 @@ func _state_process_physics_climb():
|
||||||
# if animation_index > 0:
|
# if animation_index > 0:
|
||||||
# animations.stop()
|
# animations.stop()
|
||||||
else:
|
else:
|
||||||
return request_state_change.call_func('idle')
|
## Force downward to the floor, can't do a new floor check without first moving
|
||||||
|
parent.move_and_collide(Vector2(0,100.0))
|
||||||
|
if parent.is_on_floor():
|
||||||
|
#parent.move_and_slide(Vector2(0,100.0),Vector2.UP)
|
||||||
|
return request_state_change.call_func('land')
|
||||||
|
|
||||||
|
|
||||||
if _wants_jump:
|
if _wants_jump:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user