Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Sven |
Hello guys,
maybe you can help a noob out.
I have the following tree:
Game
-------Rooms
------------------Room0
-------Player
Room0 is a child scene and instantiates an enemy scene within its script room.gd. My enemy navigation needs to know the global position of the Player node. Before i added room nodes i had enemies as direct children of game. But now my room script instantiates them via script
I tried to drag and drop my Player in my enemy script. But it says “Can’t drop nodes because script ‘enemy.gd(*)’ is not used in this scene”
Anyone knows how i access the player position?
Thanks a lot!