13 lines
255 B
GDScript
13 lines
255 B
GDScript
extends Node3D
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
# Sets a random speed multiplier between 0.8 and 1.3
|
|
$AnimationPlayer.speed_scale = randf_range(0.8, 1.3)
|
|
$AnimationPlayer.play("fire_loop")
|
|
|
|
|
|
|
|
|