no more gifs
This commit is contained in:
parent
7db517ab17
commit
1be256e74c
112 changed files with 1034 additions and 570 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue