Fixing fade error

This commit is contained in:
2026-03-09 21:14:09 -04:00
parent ab3906ee53
commit 4f241e72af
+2 -1
View File
@@ -467,7 +467,8 @@ func _tick_orbiters(delta: float) -> void:
continue continue
# Fade visual as it ages # Fade visual as it ages
var fade := 1.0 - (orb["age"] / ORBIT_DECAY_TIME) * 0.5 var age_val: float = orb["age"]
var fade: float = 1.0 - (age_val / ORBIT_DECAY_TIME) * 0.5
var poly := node.get_node_or_null("Poly") as Polygon2D var poly := node.get_node_or_null("Poly") as Polygon2D
if poly: if poly:
poly.color = Color(0.6, 0.3, 0.7, fade) poly.color = Color(0.6, 0.3, 0.7, fade)