added enemy health bar and target with markers
This commit is contained in:
7
scripts/health_bar_sprite.gd
Normal file
7
scripts/health_bar_sprite.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
extends Sprite3D
|
||||
|
||||
@export var character : Node
|
||||
@onready var health_bar: Control = $SubViewport/HealthBar
|
||||
|
||||
func health_update():
|
||||
health_bar.queue_redraw()
|
||||
Reference in New Issue
Block a user