This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hi, thank you for your answer, whats the name of the plugin? I downloaded it form Github but how can i drag it in the godot game engine? Or can i download it in Godot?

And i have a another question, how can I make that I can interact with the tree as a player, but also that it is an object where you can pass it, i.e. a non-navigable object?

related to an answer for: Pathfinding to axe a tree
in Engine by (86 points)

1 Answer

0 votes

Create an "addons" folder in your project and drag the folder for the entire plugin into that folder. Then, in Project -> Project Settings, find the Plugins tab at the top and click to Activate the one shown.

As far as interacting and stuff, I think that's a bit too subjective of a question; it depends on how you want to setup your code, it depends on how things are setup already, and so on. What I'd recommend is if the player clicks on a particular tile, you go to your tilemap, see if that tile is an object which can be interacted with (like a tree) and if it can, then you automatically navigate the player to one of the tiles around it - depending on your animation for it. So for instance if the player has to swing an axe, and that axe will swing from behind, down, and then to the right so it looks like it's "hitting" the tree, then you'd want the player to be in the cell to the left of the tree. We can't really explain to you here how to code an entire game though, so you'll have to figure out some of this on your own. I recommend using the plugin I made for navigation, but use it to learn how to handle navigation and learn on your own - it's more important to learn how to do stuff on your own and be self-sufficient.

by (116 points)

i cannot import the plugin!

the error code: core/os/dir_access.cpp:185 - Method failed. Returning: err

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.