no more gifs

This commit is contained in:
Ultrablob 2024-05-07 14:29:47 -04:00
parent 7db517ab17
commit 1be256e74c
112 changed files with 1034 additions and 570 deletions

View file

@ -1,15 +1,10 @@
extends "res://player.gd"
const idle_anim = preload("res://player_idle.gif")
const moving_anim = preload("res://player_moving.gif")
func update_animation():
if moving:
$AnimatedSprite2D.sprite_frames = moving_anim
$AnimatedSprite2D.play("moving")
else:
$AnimatedSprite2D.sprite_frames = idle_anim
$AnimatedSprite2D.play("gif")
$AnimatedSprite2D.play("idle")
func _ready():
update_display()