script to a breaking platform for a 2D platform game.
Player has Area2D for detection of the platform.
The AnimationPlayer is a child (in the scene of) BreakingPlatform
Only the original node is able to play the animation and queue_free properly. While other nodes (duplicated of the original node) does not play the animation (the original nodes plays it instead), it does queue_free properly (after the original node finish its animation)
But if you look inside dublicated AnimationPlayer it hold same Track and animate first Platform.
For avoid this you must create standalone scene with Platform and AnimationPlayer and instantiate as many as you need into your game level by pressing chain icon for example