When RigidBody2D spawning on Path2D, the path gets moved to another position.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rubendw03

Hi, so I’m working on this project (download link underneath) where I spawn 2 types of players into a certain area using a path. The first players spawn in perfectly but I just implemented another type of player (doctors) and when I spawn this one it looks like the path gets moved. If you download the project and play it, make the game window longer and smaller and press the “Doctor” button a few times. You can then see the players (the doctors) (blue) get spawned on other locations even though they use the same spawn path as the other players.
Is there someone who knows why this problem occurs and how to fix it?


Project Download
https://drive.google.com/uc?export=download&id=17z4RUUt1ZAL4I25pru_livjWB8mYnD9x