pirate-survivors/Characters/Ships/wrecked_boat.gd
2026-01-17 19:26:02 +01:00

17 lines
384 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)
print("scale: ", scale)
pass
func _on_lifetime_timeout():
queue_free()