Enemies adjusted.
This commit is contained in:
@ -44,14 +44,19 @@ func move_character(delta: float) -> void:
|
||||
func set_character_data():
|
||||
match self.name:
|
||||
"Forkman":
|
||||
speed = 100
|
||||
health = 100
|
||||
shield = 100
|
||||
"Swordman":
|
||||
speed = 120
|
||||
health = 100
|
||||
shield = 100
|
||||
|
||||
"Ork":
|
||||
speed = 80
|
||||
health = 150
|
||||
shield = 100
|
||||
"Cobold":
|
||||
speed = 200
|
||||
health = 50
|
||||
shield = 0
|
||||
|
||||
get_node("CharacterBody2D/AnimatedSprite2D").speed_scale = float(speed) / 100 #adjust animation speed based on the character speed
|
||||
current_health = health
|
||||
current_shield = shield
|
||||
|
||||
|
Reference in New Issue
Block a user