feat: enemy death and damage effects
This commit is contained in:
parent
2134fcae92
commit
1a8c64806d
13 changed files with 96 additions and 7 deletions
|
|
@ -6,7 +6,10 @@
|
|||
script/source = "extends EnemyWretched
|
||||
|
||||
func _on_health_status_death() -> void:
|
||||
queue_free();
|
||||
%StateMachine.set_process(false)
|
||||
$wretched/AnimationPlayer.play(\"death\")
|
||||
$CollisionShape3D.disabled = true
|
||||
set_movement_direction(Vector2())
|
||||
"
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ng1ul"]
|
||||
|
|
@ -20,9 +23,15 @@ script = SubResource("GDScript_qot2n")
|
|||
[node name="Hitbox" parent="wretched/Character/Skeleton3D" index="2" node_paths=PackedStringArray("health")]
|
||||
health = NodePath("../../../../HealthStatus")
|
||||
|
||||
[node name="SpineAttach" parent="wretched/Character/Skeleton3D" index="3"]
|
||||
transform = Transform3D(1, -2.2202518e-16, 2.1910394e-16, 2.1910388e-16, 0.9999122, 0.013243958, -2.220252e-16, -0.01324396, 0.99991226, -4.1256417e-17, 1.1546816, -0.0027124756)
|
||||
|
||||
[node name="Hitbox" parent="wretched/Character/Skeleton3D/SpineAttach" index="0" node_paths=PackedStringArray("health")]
|
||||
health = NodePath("../../../../../HealthStatus")
|
||||
|
||||
[node name="HeadAttach" parent="wretched/Character/Skeleton3D" index="4"]
|
||||
transform = Transform3D(0.9999988, -0.0007823897, 0.0013344375, 0.0007271601, 0.99916273, 0.04089782, -0.0013653187, -0.040896803, 0.9991622, -1.3069549e-16, 1.5574794, -0.004068734)
|
||||
|
||||
[node name="Hitbox" parent="wretched/Character/Skeleton3D/HeadAttach" index="0" node_paths=PackedStringArray("health")]
|
||||
health = NodePath("../../../../../HealthStatus")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue