16 lines
285 B
GDScript
16 lines
285 B
GDScript
extends RigidBody
|
|
|
|
|
|
onready var anim = get_node("AnimationPlayer")
|
|
onready var skeleton = get_node("Armature/Skeleton")
|
|
|
|
|
|
func _unhandled_input(event):
|
|
if event is InputEventKey:
|
|
if event.pressed and event.scancode == KEY_A:
|
|
play()
|
|
|
|
|
|
func play():
|
|
anim.play("ArmatureAction001")
|