I have this simple Hud code
extends CanvasLayer
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
Signals.connect("on_button_changed", self,"Shop_reset")
Signals.connect("is_shop", self,"Shop_turn")
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func Shop_turn():
print("works")
$Shop.playing = true
func Shop_reset():
$Shop.frame = 0
$Shop.playing = false
func _on_TextureButton_button_up():
Signals.emit_signal("on_button_change")
$Shop.playing = true
my problem is with Shop_turn which prints "works" but doesn't play the animation. AND if I remove Shop_reset() or _on_texturebutton_up() IT WORKS I've tried with .play etc IT DOESN'T WORK and when i try .hide it works. WHY? Please help