skeleton proper death sound, better bone particles

This commit is contained in:
Haze Weathers 2023-01-21 00:32:28 -05:00
parent 30d7e84a46
commit b1beffd97b
10 changed files with 46 additions and 10 deletions

View file

@ -55,6 +55,9 @@ func _on_Hitbox_area_entered(area):
if target_group == "enemy_hitbox":
Game.arrows = max(0, Game.arrows - 1) # clamp arrows above 0
queue_free()
elif area.is_in_group("arrow"):
_make_sparks()
queue_free()
func _make_sparks():
var particles = $SparkParticles

View file

@ -75,7 +75,6 @@ process_material = SubResource( 5 )
texture = ExtResource( 4 )
[node name="Hitbox" type="Area2D" parent="." groups=["arrow"]]
collision_layer = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( -0.5, -0.5 )
@ -86,6 +85,7 @@ position = Vector2( 4, 0 )
emitting = false
amount = 16
lifetime = 0.5
one_shot = true
explosiveness = 1.0
process_material = SubResource( 8 )
texture = ExtResource( 4 )