added enemy health bar and target with markers

This commit is contained in:
derek
2025-03-22 19:09:13 -05:00
parent b85014c48b
commit c435db8b67
30 changed files with 239 additions and 33 deletions

View File

@@ -45,6 +45,10 @@ func _physics_process(delta):
instance_bullethole.look_at(ray.get_collision_point() + ray.get_collision_normal())
instance_bullethole.rotation.z = deg_to_rad(randf_range(0,360))
#range target
if body.is_in_group("range_target"):
body.add_marker(ray.get_collision_point(),ray.global_rotation)
# Leaking effect
if body.is_in_group("leak"):
var leakspawn = water_leak.instantiate()