16 lines
359 B
GDScript
16 lines
359 B
GDScript
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)
|
|
pass
|
|
|
|
func _on_lifetime_timeout():
|
|
queue_free()
|