road-rage-tank/utils/label_vfx/label_vfx.gd

12 lines
298 B
GDScript

class_name LabelVFX
extends Label3D
func _ready() -> void:
create_tween().tween_property(self, "position:y", position.y + 10, 2.)
create_tween().tween_method((func(alpha: float):
modulate.a = alpha
outline_modulate.a = alpha
), 1., 0., 1.).set_delay(.5) \
.finished.connect(queue_free)