drowning fixes (closes #147) YIPEE!!! :) :) :)

This commit is contained in:
Haze Weathers 2023-10-24 20:33:39 -04:00
parent 2ca88e511f
commit 26d5806061

View file

@ -302,7 +302,7 @@ func _on_Dead_state_entered() -> void:
func _on_Drowning_state_entered() -> void:
state_chart.send_event("died")
velocity = Vector2.ZERO
animation_player.play("drown")
animation_player.call_deferred("play", "drown")
func _on_Respawn_state_entered() -> void:
global_position = Game.respawn_point
@ -313,6 +313,7 @@ func _on_Edge_state_entered():
animation_player.play("edge")
func _on_Inactive_state_entered() -> void:
velocity = Vector2.ZERO
body_shape.disabled = true
hitbox.monitorable = false
hitbox.monitoring = false