You can use AnimationPlayer's "Add Track -> Call Method Track" in animation API ,
It will excue the the func you set after "attack1" finished .
You can use AnimationPlayer's "Add Track -> Call Method Track" in animation API ,
It will excue the the func you set after "attack1" finished .
Maybe use API to connect the timeout function in parent node?
If you want to use connect() , maybe try:
myTime.connect("timeout", self, xxx)
func xxx():
// do some things
Maybe try this plugin?
This can convert AnimtedSprite's animation frames in an AnimationPlayer.
A Godot addon to convert animated sprite frames to animations in an animation player. - poohcom1/godot-animated-sprite-2-player
GitHub (github.com)