Left is the Roller in-game; right is its Behavior Tree running live. As it spots the player the active nodes light up and it moves through its states — detecting, chasing, and attaching — in sync with what's on screen.
It's the same tree broken down below: a Selector prioritizing states, fed by custom services and a drop-and-fall task.