Reply To: Looking for some Beginner help.

NodeCanvas Forums General Discussion Looking for some Beginner help. Reply To: Looking for some Beginner help.

#14377
anax
Participant

Hey buddy welcome. Judging by your posts it seems that you know what you are looking for, it’s just that you need more practice. Bare in mind that the subjects of Behavior Trees and State Machines areĀ  hard to grasp even for a large portion of software developers. I know how you feel because thats how I felt when I started and I still need a lot of practice myself.

I suggest you find more BT examples on the web and study them. NodeCanvas is just an interpretation of BT theory and it is not necessarily in the scope of the product to explain how BTs work. A good place to start, if you haven’t done so already is: https://www.gamasutra.com/blogs/ChrisSimpson/20140717/221339/Behavior_trees_for_AI_How_they_work.php

For your example I would also try to use an Iterate Decorator. As for the random wait time remember that you can build your own Decorators. Here is how I have modified a Timeout Decorator to act as a Wait:

If you want a random timer then you can simply assign a random float using UnityEngine.Random.Range(float min, float max); Best of luck and good practicing!