Implermented health

This commit is contained in:
Michel 2025-02-02 02:23:55 +01:00
parent 76e5b1927f
commit e6391d9fdd
13 changed files with 142 additions and 109 deletions

View file

@ -49,7 +49,7 @@ func fireBullet() -> void:
print('No result')
return
var health = result.collider.get_node('Health')
var health = result.collider.get_node_or_null('Health')
if health:
print("Dealing Damage")
result.collider.health.take_damage(1, Vector2(0,0))