10 lines
228 B
GDScript3
10 lines
228 B
GDScript3
![]() |
extends AnimationPlayer
|
||
|
|
||
|
@export var startAnimation: String
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
play(startAnimation)
|
||
|
advance(randf_range(0, get_animation(startAnimation).length))
|
||
|
|