In this project you will find an example o Behavior Tree implemented in Godot, without extra plugins.
You can find the basic nodes under /addons/behavior_tree
. Custom code is on /bt_example
.
This example was created for this video: https://www.youtube.com/watch?v=1rNLTHbFFaA
- Follow mouse cursor when close (less than 300px).
- Go to the closest home, in case mouse is too far.
- After reaching home, changes npcs color to red.