extends Node3D
var animation_speed = 1.0
var animation_playing = true
func _ready():
$AnimationPlayer.play("MakeHuman default skeleton|CAMINANTE")
func _process(delta):
# Control de la velocidad de la animación
if Input.is_action_pressed("andaradelante"):
animation_speed = 2.0
else:
animation_speed = 1.0
# Detener o reanudar la animación
if Input.is_action_just_pressed("detenerse"):
animation_playing = not animation_playing
if animation_playing:
$AnimationPlayer.play()
$AnimationPlayer.speed = animation_speed
else:
$AnimationPlayer.stop()