extends Sprite2D # Called when the node enters the scene tree for the first time. func _ready() -> void: $LifetimeTimer.timeout.connect(_on_lifetime_timeout) # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: scale = scale * (0.6 ** delta) print("scale: ", scale) pass func _on_lifetime_timeout(): queue_free()