mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-23 00:24:21 +00:00
15 lines
248 B
GDScript3
15 lines
248 B
GDScript3
|
extends Node2D
|
||
|
class_name Cloud
|
||
|
|
||
|
@onready var player = $"AnimationPlayer"
|
||
|
@onready var spawner = $"Spawner"
|
||
|
|
||
|
func _ready():
|
||
|
spawner.spawn()
|
||
|
var player = $"AnimationPlayer"
|
||
|
player.play("fade_out")
|
||
|
await player.animation_finished
|
||
|
queue_free()
|
||
|
|
||
|
|