drowning fixes (closes #147) YIPEE!!! :) :) :)
This commit is contained in:
parent
2ca88e511f
commit
26d5806061
1 changed files with 2 additions and 1 deletions
|
@ -302,7 +302,7 @@ func _on_Dead_state_entered() -> void:
|
||||||
func _on_Drowning_state_entered() -> void:
|
func _on_Drowning_state_entered() -> void:
|
||||||
state_chart.send_event("died")
|
state_chart.send_event("died")
|
||||||
velocity = Vector2.ZERO
|
velocity = Vector2.ZERO
|
||||||
animation_player.play("drown")
|
animation_player.call_deferred("play", "drown")
|
||||||
|
|
||||||
func _on_Respawn_state_entered() -> void:
|
func _on_Respawn_state_entered() -> void:
|
||||||
global_position = Game.respawn_point
|
global_position = Game.respawn_point
|
||||||
|
@ -313,6 +313,7 @@ func _on_Edge_state_entered():
|
||||||
animation_player.play("edge")
|
animation_player.play("edge")
|
||||||
|
|
||||||
func _on_Inactive_state_entered() -> void:
|
func _on_Inactive_state_entered() -> void:
|
||||||
|
velocity = Vector2.ZERO
|
||||||
body_shape.disabled = true
|
body_shape.disabled = true
|
||||||
hitbox.monitorable = false
|
hitbox.monitorable = false
|
||||||
hitbox.monitoring = false
|
hitbox.monitoring = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue