volzhs / godot-behavior-tree-example

Example of tree implemented in Godot, without extra plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Godot Behavior Tree Example

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

What is this Behavior Tree doing

  • 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.

About

Example of tree implemented in Godot, without extra plugins


Languages

Language:GDScript 100.0%