princesse/wall_hug: ne pas huger le plafond
La princesse avait tendance à s'accrocher au plafond pour quechi. Correction du bug zoubi
This commit is contained in:
@@ -461,7 +461,6 @@ func read_input() -> void:
|
||||
(pressing_wall_right and direction == 1)
|
||||
)
|
||||
)
|
||||
|
||||
else:
|
||||
grab_wall = false
|
||||
|
||||
@@ -526,12 +525,16 @@ func compute_state() -> void:
|
||||
coyote_grab.remove_at(0)
|
||||
|
||||
# gestion de l'état de la pression au mur
|
||||
pressing_wall_left = (not is_on_floor() and not collide_ground_far_detect) and (
|
||||
pressing_wall_left = (
|
||||
not is_on_floor() and not collide_ground_far_detect and not is_on_ceiling_only()
|
||||
) and (
|
||||
wall_detect_left.is_colliding() or
|
||||
wall_detect_left2.is_colliding() or
|
||||
wall_detect_left3.is_colliding()
|
||||
)
|
||||
pressing_wall_right = (not is_on_floor() and not collide_ground_far_detect) and (
|
||||
pressing_wall_right = (
|
||||
not is_on_floor() and not collide_ground_far_detect and not is_on_ceiling_only()
|
||||
) and (
|
||||
wall_detect_right.is_colliding() or
|
||||
wall_detect_right2.is_colliding() or
|
||||
wall_detect_right3.is_colliding()
|
||||
|
||||
Reference in New Issue
Block a user