Blackboard and Behavior Trees
- jacoblince8
- Oct 21, 2022
- 1 min read
Recently I have been learning more about AI programing in Unreal Engine. This time I'll be using the Decision tree system to create a new and improved AI character. I copied and pasted the blueprint and animation Blueprint for the Creeper enemy for this update so it can be usable in the Otherworld project.

Per the quick start guide I removed everything from the event grid and made an AI controller and blackboard for AI variables. Then I got to work on the behavior tree and task programing.

Here's what I have so far:
Blackboard

Behavior tree

Chasing Player Task

Patrolling Task

In the behavior tree tasks, there is a function I made called "Update Walk Speed" which the turns the character movement into a variable that can be be easily changed depending on the task at hand:

This would change the max walk speed depending on whether the enemy is just patrolling or going after the player character. I should have it up and running by next week. I'm really looking forward to showing this to you but for now have a great weekend.
Comments