oh man i fixed that status effect bug
This commit is contained in:
@ -56,12 +56,6 @@ layers = 4
|
||||
texture_filter = 0
|
||||
texture = ExtResource("9_7yfyh")
|
||||
|
||||
[node name="StatusEffector" type="Node3D" parent="." node_paths=PackedStringArray("hbox", "enemy")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.521307, 0)
|
||||
script = ExtResource("9_7hati")
|
||||
hbox = NodePath("../SubViewport/HBoxContainer")
|
||||
enemy = NodePath("..")
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="."]
|
||||
transparent_bg = true
|
||||
size = Vector2i(200, 55)
|
||||
@ -83,6 +77,11 @@ offset_bottom = 236.0
|
||||
script = ExtResource("9_cx8mv")
|
||||
character = NodePath("..")
|
||||
|
||||
[node name="StatusEffector" type="Node" parent="." node_paths=PackedStringArray("sprite_container")]
|
||||
script = ExtResource("9_7hati")
|
||||
sprite_container = NodePath("../SubViewport/HBoxContainer")
|
||||
metadata/_custom_type_script = "uid://cojjgevmbhwal"
|
||||
|
||||
[connection signal="health_changed" from="Health" to="SubViewport/HealthBar" method="on_health_changed"]
|
||||
[connection signal="health_depleted" from="Health" to="." method="die"]
|
||||
[connection signal="took_damage" from="Hitbox" to="Health" method="take_damage"]
|
||||
|
@ -22,6 +22,7 @@ func _ready() -> void:
|
||||
$SubViewport/HealthBar.setup(stats.health)
|
||||
sprite.texture = stats.sprite.duplicate()
|
||||
movement_speed = stats.movement_speed
|
||||
status_manager.enemy = self
|
||||
|
||||
|
||||
func apply_effect(effect: Effect) -> void:
|
||||
|
@ -62,12 +62,6 @@ layers = 4
|
||||
texture_filter = 0
|
||||
texture = ExtResource("9_f8btv")
|
||||
|
||||
[node name="StatusEffector" type="Node3D" parent="." node_paths=PackedStringArray("hbox", "enemy")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.18114, 0)
|
||||
script = ExtResource("10_txouh")
|
||||
hbox = NodePath("../SubViewport/HBoxContainer")
|
||||
enemy = NodePath("..")
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="."]
|
||||
transparent_bg = true
|
||||
size = Vector2i(200, 55)
|
||||
@ -94,6 +88,11 @@ script = ExtResource("12_2nmk0")
|
||||
character = NodePath("..")
|
||||
sprite = NodePath("../DirectionSprite")
|
||||
|
||||
[node name="StatusEffector" type="Node" parent="." node_paths=PackedStringArray("sprite_container")]
|
||||
script = ExtResource("10_txouh")
|
||||
sprite_container = NodePath("../SubViewport/HBoxContainer")
|
||||
metadata/_custom_type_script = "uid://cojjgevmbhwal"
|
||||
|
||||
[connection signal="health_changed" from="Health" to="SubViewport/HealthBar" method="on_health_changed"]
|
||||
[connection signal="health_depleted" from="Health" to="." method="die"]
|
||||
[connection signal="took_damage" from="Hitbox" to="Health" method="take_damage"]
|
||||
|
@ -77,12 +77,6 @@ layers = 4
|
||||
texture_filter = 0
|
||||
texture = ExtResource("8_egpbw")
|
||||
|
||||
[node name="StatusEffector" type="Node3D" parent="." node_paths=PackedStringArray("hbox", "enemy")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.18114, 0)
|
||||
script = ExtResource("9_47ywr")
|
||||
hbox = NodePath("../SubViewport/HBoxContainer")
|
||||
enemy = NodePath("..")
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="."]
|
||||
transparent_bg = true
|
||||
size = Vector2i(200, 55)
|
||||
@ -225,6 +219,11 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.141846, 0)
|
||||
visible = false
|
||||
size = Vector3(0.5, 0.783691, 0.5)
|
||||
|
||||
[node name="StatusEffector" type="Node" parent="." node_paths=PackedStringArray("sprite_container")]
|
||||
script = ExtResource("9_47ywr")
|
||||
sprite_container = NodePath("../SubViewport/HBoxContainer")
|
||||
metadata/_custom_type_script = "uid://cojjgevmbhwal"
|
||||
|
||||
[connection signal="health_changed" from="Health" to="SubViewport/HealthBar" method="on_health_changed"]
|
||||
[connection signal="health_depleted" from="Health" to="." method="die"]
|
||||
[connection signal="took_damage" from="Hitbox" to="Health" method="take_damage"]
|
||||
|
Reference in New Issue
Block a user