0 votes

So my chase script works fine even with multiple enemies if the nav2d mesh is one whole polygon but when i use my tileset with navigation it starts lagging every time it calls the get_simple_path() is there a way to merge the tiles so is can form into one polygon or are there any alternative ways to use the tileset navigation.

in Engine by (399 points)

1 Answer

0 votes

So i just removed my nav2d from my tilemap and created a nav mesh manually and it stops lagging so maybe my script doesnt work well with tile map nav mesh or my map was too big.

by (399 points)
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 Frequently asked questions and 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 [email protected] with your username.