14 lines
306 B
GDScript
14 lines
306 B
GDScript
extends CharacterBody2D
|
|
|
|
@onready var collision_shape_2d: CollisionShape2D = $CollisionShape2D
|
|
@onready var animated_sprite: AnimatedSprite2D = $AnimatedSprite2D
|
|
|
|
|
|
func _process(_delta: float):
|
|
play_idle_animation()
|
|
animated_sprite.z_index = 5
|
|
|
|
|
|
func play_idle_animation():
|
|
animated_sprite.play("down")
|