fix broken drowning
This commit is contained in:
parent
4b53044f9f
commit
5893106174
2 changed files with 15 additions and 5 deletions
|
@ -309,7 +309,7 @@ func _on_Dead_state_entered() -> void:
|
|||
oxygen_timer.start()
|
||||
|
||||
func _on_Drowning_state_entered() -> void:
|
||||
state_chart.send_event("died")
|
||||
# state_chart.send_event("died")
|
||||
velocity = Vector2.ZERO
|
||||
animation_player.call_deferred("play", "drown")
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ tracks/2/loop_wrap = true
|
|||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/keys = {
|
||||
"times": PoolRealArray( 1.3 ),
|
||||
"times": PoolRealArray( 1.6 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"values": [ {
|
||||
"args": [ "float_up" ],
|
||||
|
@ -812,6 +812,11 @@ __meta__ = {
|
|||
}
|
||||
initial_state = NodePath("Grounded")
|
||||
|
||||
[node name="On Drown" type="Node" parent="StateChart/Root/Movement"]
|
||||
script = ExtResource( 10 )
|
||||
to = NodePath("../Inactive")
|
||||
event = "drown"
|
||||
|
||||
[node name="On Died" type="Node" parent="StateChart/Root/Movement"]
|
||||
script = ExtResource( 10 )
|
||||
to = NodePath("../Appearing")
|
||||
|
@ -1111,6 +1116,11 @@ script = ExtResource( 10 )
|
|||
to = NodePath("../../Appearing")
|
||||
event = "appear"
|
||||
|
||||
[node name="On Respawn" type="Node" parent="StateChart/Root/Movement/Inactive"]
|
||||
script = ExtResource( 10 )
|
||||
to = NodePath("../../Appearing")
|
||||
event = "respawn"
|
||||
|
||||
[node name="Teleporting" type="Node" parent="StateChart/Root/Movement"]
|
||||
script = ExtResource( 11 )
|
||||
__meta__ = {
|
||||
|
@ -1248,8 +1258,8 @@ align = 1
|
|||
[connection signal="state_entered" from="StateChart/Root/Movement/Grounded/Shooting" to="." method="_on_Shooting_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Grounded/Pushing" to="." method="_on_Pushing_state_entered"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Grounded/Pushing" to="." method="_process_pushing"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne" to="." method="_on_Airborne_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne" to="." method="reset_fall_speed"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne" to="." method="_on_Airborne_state_entered"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Airborne" to="." method="_process_gravity"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Airborne/Jump" to="." method="_process_horizontal_movement"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Airborne/Jump" to="." method="_process_jump"]
|
||||
|
@ -1261,8 +1271,8 @@ align = 1
|
|||
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne/Falling/NormalFalling" to="." method="_on_NormalFalling_state_entered"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Airborne/Falling/NormalFalling" to="." method="_process_horizontal_movement"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne/Falling/ScaredFalling" to="." method="_on_ScaredFalling_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne/DoubleJump" to="." method="_on_DoubleJump_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne/DoubleJump" to="." method="reset_fall_speed"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne/DoubleJump" to="." method="_on_DoubleJump_state_entered"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Airborne/DoubleJump" to="." method="_process_horizontal_movement"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne/AirShooting" to="." method="_on_AirShooting_state_entered"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Airborne/AirShooting" to="." method="_process_horizontal_movement"]
|
||||
|
@ -1274,8 +1284,8 @@ align = 1
|
|||
[connection signal="state_entered" from="StateChart/Root/Movement/Teleporting" to="." method="_on_Inactive_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Teleporting" to="." method="_on_Teleporting_state_entered"]
|
||||
[connection signal="state_exited" from="StateChart/Root/Movement/Teleporting" to="." method="_on_Inactive_state_exited"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Appearing" to="." method="_on_Inactive_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Appearing" to="." method="_on_Appearing_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Appearing" to="." method="_on_Inactive_state_entered"]
|
||||
[connection signal="state_exited" from="StateChart/Root/Movement/Appearing" to="." method="_on_Inactive_state_exited"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Health/Respawn" to="." method="_on_Respawn_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Health/Dead" to="." method="_on_Dead_state_entered"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue