Gotta fix the hurt for player but otherwise done.
This commit is contained in:
@@ -61,3 +61,11 @@ func _on_level_up() -> void:
|
||||
|
||||
func _on_questor_changed() -> void:
|
||||
pass
|
||||
|
||||
func attack(target : QuestSprite) -> void:
|
||||
print("Attack by %s to %s" % [name, target.name])
|
||||
hitting.connect(spear_hit.bind(target), CONNECT_ONE_SHOT)
|
||||
anim_player.play("spear attack")
|
||||
|
||||
func spear_hit(target : QuestSprite) -> void:
|
||||
target.take_damage(self, 5)
|
||||
|
||||
Reference in New Issue
Block a user