fixed enemy death sequence

This commit is contained in:
derek
2025-04-21 16:55:40 -05:00
parent ca81947325
commit 3e46060a70
4 changed files with 12 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=76 format=4 uid="uid://djr7vnr1hcx82"]
[gd_scene load_steps=77 format=4 uid="uid://djr7vnr1hcx82"]
[ext_resource type="Script" uid="uid://cdofgtwevbray" path="res://scripts/spider.gd" id="1_7e7fe"]
[ext_resource type="PackedScene" uid="uid://h5ojldugfyyu" path="res://assets/bullet_enemy.tscn" id="2_aew5r"]
@@ -15,6 +15,7 @@
[ext_resource type="Texture2D" uid="uid://chiol2whyb84t" path="res://assets/Models/SubstancePainterTest/spider-LOW_spider1.gunbarrel_Metallic.png" id="9_cwyr0"]
[ext_resource type="PackedScene" uid="uid://41iv1ualpttf" path="res://assets/damage_number.tscn" id="9_rmegy"]
[ext_resource type="AudioStream" uid="uid://0n251thxlnnp" path="res://assets/Audio/cannon-fire-single-shot-blast-explosion-SBA-300098885.wav" id="10_2qmhc"]
[ext_resource type="Script" uid="uid://cr3wdhodxqf3f" path="res://scripts/EnemyAttack.gd" id="10_gicen"]
[ext_resource type="Texture2D" uid="uid://c7bdujukdjajv" path="res://assets/Models/SubstancePainterTest/spider-LOW_spider1.gunbarrel_Normal.png" id="10_wpql0"]
[ext_resource type="Texture2D" uid="uid://d0w0lon4smlhm" path="res://assets/Models/SubstancePainterTest/spider-LOW_spider1.gunbarrel_Roughness.png" id="11_6mvds"]
[ext_resource type="Material" uid="uid://cc0el8wu0au85" path="res://assets/materials/OutlineMat.tres" id="13_ee4im"]
@@ -824,6 +825,9 @@ script = ExtResource("9_6mvds")
enemy = NodePath("../..")
metadata/_custom_type_script = "uid://dhxolagi0b5s1"
[node name="Attack" type="Node" parent="StateMachine"]
script = ExtResource("10_gicen")
[node name="HealthBarSprite" parent="." node_paths=PackedStringArray("character") instance=ExtResource("7_87l3v")]
transform = Transform3D(0.254412, 0, 0, 0, 0.561068, 0, 0, 0, 1, 0, 2.41498, 0)
billboard = 2