diff --git a/scripts/Contents/Characters/Chick.gd b/scripts/Contents/Characters/Chick.gd index 37afcde..b1f3f68 100644 --- a/scripts/Contents/Characters/Chick.gd +++ b/scripts/Contents/Characters/Chick.gd @@ -11,6 +11,8 @@ func register(): attackCooldownMap[0] = 2000 attackCooldownMap[1] = 6000 attackCooldownMap[2] = 100 +func spawn(): + texture.play("walk") func ai(): move(currentFocusedBoss.position - position) diff --git a/scripts/Statemachine/EntityBase.gd b/scripts/Statemachine/EntityBase.gd index 0b5b333..f3665eb 100644 --- a/scripts/Statemachine/EntityBase.gd +++ b/scripts/Statemachine/EntityBase.gd @@ -106,6 +106,7 @@ func _ready(): ) healthChanged.emit(health) energyChanged.emit(energy) + spawn() func _process(_delta): health = clamp(health, 0, fields.get(FieldStore.Entity.MAX_HEALTH)) energy = clamp(energy, 0, fields.get(FieldStore.Entity.MAX_ENERGY)) @@ -256,6 +257,8 @@ func heal(count: float): return count func register(): pass +func spawn(): + pass static func generate( entity: PackedScene,