fix most of the script errors and warnings, fixed a couple tiny bugs in the process :)

This commit is contained in:
Haze Weathers 2024-03-08 15:11:48 -05:00
parent 9435089f21
commit 72733db609
23 changed files with 55 additions and 63 deletions

View file

@ -88,15 +88,9 @@ autostart = true
[node name="Position2D" type="Position2D" parent="."]
position = Vector2( 14, 29 )
[node name="ArrowSpawnTimer" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
autostart = true
[node name="Sprite" type="AnimatedSprite" parent="."]
position = Vector2( 26, 27 )
frames = SubResource( 5 )
frame = 1
playing = true
[node name="BloodPosition" type="Position2D" parent="."]
@ -114,4 +108,3 @@ volume_db = -8.0
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
[connection signal="timeout" from="ShootTimer" to="." method="_on_ShootTimer_timeout"]
[connection signal="timeout" from="ArrowSpawnTimer" to="." method="_on_ArrowSpawnTimer_timeout"]

View file

@ -111,6 +111,7 @@ func hurt(amount: float, can_duck: bool = false) -> void:
emit_signal("health_changed", hp)
if state != State.DEAD and hp <= 0.0:
state = State.DEAD
emit_signal("died")
anims.play("die")