Behavior Trees and Animations
Posted
by
Tom
on Game Development
See other posts from Game Development
or by Tom
Published on 2012-12-16T00:19:01Z
Indexed on
2012/12/16
5:20 UTC
Read the original article
Hit count: 275
I have started working on the AI for a game, but am confused how I should handle animations. I will be using a Behavior Tree for AI behavior and Cocos2D for my game engine.
Should my "PlayAnimationWalk" just be another node in the tree?
Something similar to this: [Approach Player] - Play Walk animation - Move Towards player - Stop Walk animation
Or should the node just update an AnimationState in the blackboard and have some type of animation handler/component reference this for which animation should be playing?
This has been driving me nuts :)
© Game Development or respective owner