so i have two animation in one scene but i cannot change animation to another animation
i mean i want when a button (screen) pressed the want to be changed to another animation
here is my code
extends TextureButton
onready var anim = get_node("AnimationPlayer")
##i connected to button node (presssed)##
func _on_TextureButton_pressed():
anim.current_animation("starting")
If you don't understand sorry i am very poor at explanation.if you have a question tell me