+1 vote

I'm trying to implement path-finding into my game. I Looked around for examples and ideas and found XCOM 2 style of RTS type navigation is pretty close to what I need. I'm just need a starting point of how to implement such a system. I think the path is build based on the position of the mouse when you click, and the Characters current position, but the path also takes into consideration the environment/ collidable objects. I know Godot support navmesh but I believe waypoints would work better? Is there anyone that can point me in the right direction? Any help is appreciated.

PS. If you don;t know what XCOM is check it here
https://www.youtube.com/watch?v=5UIMUXt5gPs

in Engine by (273 points)
recategorized by

1 Answer

0 votes

Godot supports navmesh both as props and GridMap blocks, so I guess they will both be taken into consideration when you do pathfinding. You could give it a try, otherwise you can use the AStar API, which allows you to define a more generic set of waypoints in GDScript.

by (29,092 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.