@onready var animationPlayer: AnimationPlayer = $AnimationPlayer
func _ready():
var testPlayer=animationPlayer.duplicate(15)
testPlayer.play("Attack")
I need to duplicate my animation player to prevent a reference of the original one. When I try to play the animation, nothing happens. The original one has the animation, it seems the duplicated one has none. Has anyone an idea how to really duplicate an animation player?
Hi. Thanks, you are right, but I already did and it is still not working. I can see it in the tree in remote, but the animation is not running when called though. This is strange.