0 votes

Hi, I am having large issues for a few days now with my navigation2D pathfinding for my enemies. I have a separate scene where I have set everything up apart from my player, the tileset and the enemies have scripts attached to them, and everything works if I run that one scene with a player. The problem starts when I import it into my main scene, the pathfinding stop trying to find the player, instead, it just goes towards 0, 0 I assume. I've tried to delete all the other nodes and just leave the player node and the navigations node but that didn't work. When I put it into another scene and run that scene with the scene as a child node of my root node and a player it works fine so my question is, is it something to do with my main scene. Here is my code: https://paste.myst.rs/zkp0mtg3

Thanks in advance to anyone who helps :D

Godot version 3.3.2
in Engine by (19 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.