So I’m working on dialogue for my game and I’ve been learning how to use export values. I thought it was neat that I could use them for adding .tres to my scene. However I got the file to attach to the character but I can’t seem to get the animation to play. I’m just using AnimatedSprite if that changes anything
I’ve been using the same names on animations, so I can easily change .tres but I’ve been working on just using the same names such as their mood, so same animation plays but from a different file:
@onready var Sprite = $Sprite
@export var CustomSprite: AnimatedSprite
func ready():
Sprite = CustomSprite
func Random():
CustomSprite.play("Angry")
This hasn’t worked exactly but if someone has a solution to make it work or fix the overall problem, that’d be great!