Compare commits
2 Commits
b56d0cb777
...
b21bf52938
| Author | SHA1 | Date |
|---|---|---|
|
|
b21bf52938 | |
|
|
85d1ef44a9 |
|
|
@ -18,8 +18,13 @@ func _ready() -> void:
|
|||
sprite.play("Healthy")
|
||||
|
||||
mirrorSprite1 = sprite.duplicate()
|
||||
sprite.play("Healthy")
|
||||
|
||||
mirrorSprite2 = sprite.duplicate()
|
||||
sprite.play("Healthy")
|
||||
|
||||
mirrorSprite3 = sprite.duplicate()
|
||||
sprite.play("Healthy")
|
||||
|
||||
add_child(mirrorSprite1)
|
||||
add_child(mirrorSprite2)
|
||||
|
|
@ -55,6 +60,9 @@ func handle_damage(dmg: int, src: Node) -> void:
|
|||
|
||||
func die() -> void:
|
||||
sprite.play("Dying")
|
||||
mirrorSprite1.play("Dying")
|
||||
mirrorSprite2.play("Dying")
|
||||
mirrorSprite3.play("Dying")
|
||||
super.die()
|
||||
|
||||
func become_injured() -> void:
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ rotation = 0.474154
|
|||
[node name="StateMachine" type="Node" parent="." index="2" unique_id=445822474 node_paths=PackedStringArray("initial_state")]
|
||||
script = ExtResource("9_xxtgy")
|
||||
initial_state = NodePath("Idle")
|
||||
metadata/_custom_type_script = "uid://ck7k8ht54snsy"
|
||||
|
||||
[node name="RandomMovement" type="Node" parent="StateMachine" index="0" unique_id=1422146232]
|
||||
script = ExtResource("10_rgguv")
|
||||
|
|
@ -82,7 +81,6 @@ script = ExtResource("12_xxtgy")
|
|||
|
||||
[node name="Idle" type="Node" parent="StateMachine" index="2" unique_id=1424222731]
|
||||
script = ExtResource("12_ubfhk")
|
||||
metadata/_custom_type_script = "uid://co2xp7gauamql"
|
||||
|
||||
[node name="Timer" type="Timer" parent="StateMachine/Idle" index="0" unique_id=1050348256]
|
||||
one_shot = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue