extends Node3D
var animacion_actual = "ANDASOLO"
func _ready():
$AnimationPlayer.play("ANDASOLO")
pass # Replace with function body.
func _physics_process(delta):
# Agacharse
if Input.is_action_just_pressed("ui_accept"):
if animacion_actual != "MakeHuman default skeleton|ATCA":
$AnimationPlayer.play("MakeHuman default skeleton|ATCA")
animacion_actual = "MakeHuman default skeleton|ATCA"
if Input.is_action_just_released("ui_accept"):
if animacion_actual != "MakeHuman default skeleton|ANDASOLO":
$AnimationPlayer.play("MakeHuman default skeleton|ANDASOLO")
animacion_actual = "MakeHuman default skeleton|ANDASOLO"
No hay comentarios:
Publicar un comentario