All Projects → VitorEstevam → GML-Behavior-Tree

VitorEstevam / GML-Behavior-Tree

Licence: other
Behaviour tree to Gamemaker studio 2

Programming Languages

GML Behavior Tree

The classic Behavior Tree to GMS 2.3+

if you don't know what you're doing here or need to learn what is a Behavior Tree, you can see it on our references

How to use

//create
function TaskChangeColor() : BTreeLeaf() constructor{
	name = "TaskChangeColor";
	
	/// @override
	static Process = function(){
		black_board_ref.user.image_blend = c_yellow
		return BTStates.Success;
	}
}

bt_root = new BTreeRoot(id);
var change_color = new TaskChangeColor()
bt_root.ChildAdd(change_color)

bt_root.Init();

//step
bt_root.Process();

See details on example.md

Nodes docs

How its builded

Contributors

References

And a especial thank you to squircledev how shared some drafts with us :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].