I have no idea what could possibly be causing this, I have an Area2D with a collision shape and a sprite(which is part of a tilemap). I've connected the Area2D to the Sprite with the following code:
if body.name == "Player":
body.spawn_point = position
The animation does play when the player comes in range, however it always spawns under the map.
I've also tried connecting the Area2D to itself and used the same code (dont know if that was smart), however the player just respawns in its "original" spawnpoint at the start of the map.