Godot Version
4.2
Question
I’m working on a project in which I need to spawn entities at a set distance from the player. To do this, I’m trying to have the entities spawn on a path very similar to the Your First 2D Game tutorial, and so far I have gotten that to work, but I can’t get that path to move with the player. Ideally, I’d have the path move just like the camera does, so that no matter where the player goes, the entities spawn a fixed distance away.
You could use a RemoteTransform2D or child the path to the player
I want to do the same like @Alyoris and I tried both:
- make the Path2D (and a PathFollow2D as child of this) as child of the Player
- add a RemoteTransform2D as child to Path2D and add the Camera2D to the “Remote Path” in the inspector
And I just don’t get it why it’s not working.
I used the RemoteTransform2D as child of the Player with Camera2D as “Remote Path” and it works fine = the camera follows the player. I don’t see any reason why it’s not working for the Path2D …
Anyone any ideas?