enemy tweaks
This commit is contained in:
@@ -41,6 +41,8 @@ func _process(delta):
|
||||
if ray.is_colliding() and ray.get_collider().is_in_group("player"):
|
||||
var player = ray.get_collider()
|
||||
player.level_control.health -= bullet_damage
|
||||
player.hurt_audio.play()
|
||||
queue_free()
|
||||
print(player.level_control.health)
|
||||
|
||||
if ray.is_colliding() and !ray.get_collider().is_in_group("player"):
|
||||
|
||||
Reference in New Issue
Block a user