my coins arent where i placed them, instead they are in the map middle

Godot Version

4.4.1

Question

I have absolutely no idea why this happens, i had my coins placed all over the little plattform and everything worket properly but from one moment to the other they just aren’t there any more, instead for some reason the just spawn on the middle point of the whole map, i didnt make any changes to the code other than ad an animation player and changed the name of the animated sprite but that has nothing to do with the position in my boock.

in the node tree the coins are a direct child of the main tree

coin script:
extends Area2D

signal flip
var coll = 1

func _on_body_entered(player) → void:
emit_signal(“flip”)
if coll == 1:
player.coins += 1
await get_tree().create_timer(0.6).timeout
hide()
coll = 2
if coll == 2:
pass

animation player script:
extends AnimationPlayer

func _on_coin_flip() → void:
play(“flip”)

Did you accidentally keyframe a position or transform in the animation player? If an autostart animation plays with a position keyframe that corresponds to the offset that you see, that would explain what happens here. Most likely (0, 0), but can be something else depending on the position of your root node.