13 lines
241 B
GDScript
13 lines
241 B
GDScript
extends CharacterBody2D
|
|
|
|
@onready var animated_sprite: AnimatedSprite2D = $AnimatedSprite2D
|
|
|
|
func play_anim_run():
|
|
animated_sprite.play("run")
|
|
|
|
func play_anim_idle():
|
|
animated_sprite.play("idle")
|
|
|
|
func hit():
|
|
animated_sprite.play("hit")
|