started fixing hud to prevent crosshair from wobbling

This commit is contained in:
Derek
2025-03-18 08:35:10 -05:00
parent 99cfc9dde2
commit d17bc56ca2
12 changed files with 148 additions and 113 deletions

View File

@@ -10,3 +10,12 @@ var bullet_force_mod
var bullet_speed
var blast_power
var blast_radius
func _ready() -> void:
visible = false
func _process(delta: float) -> void:
var distance_from_player = abs(self.global_position - player_position)
if distance_from_player.length() > 2:
visible = true