13 lines
282 B
GDScript
13 lines
282 B
GDScript
extends CharacterBody2D
|
|
|
|
@onready var collision_shape_2d: CollisionShape2D = $CollisionShape2D
|
|
@onready var animated_sprite: AnimatedSprite2D = $AnimatedSprite2D
|
|
|
|
|
|
func _process(delta: float):
|
|
play_idle_animation()
|
|
|
|
|
|
func play_idle_animation():
|
|
animated_sprite.play("down")
|