leave edge state if no longer on edge (moving platform against wall pushes SG back onto platform, etc)
This commit is contained in:
parent
75a1091ce8
commit
11286539c6
2 changed files with 7 additions and 0 deletions
|
@ -282,6 +282,8 @@ func _process_grounded(delta: float) -> void:
|
|||
#play edge sprite if hanging of edge
|
||||
if !edge_detector.is_colliding():
|
||||
state_chart.send_event("edge")
|
||||
else:
|
||||
state_chart.send_event("off_edge")
|
||||
|
||||
## called when player can move left and rightpass # Repass # Rpass # Replace with function body.eplace with function body.place with function body.
|
||||
func _process_horizontal_movement(delta: float) -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue