There are many different techniques for creating artificial intelligence in a game. Popular ones are Finite State Machines, Fuzzy Logic and Behavior Trees. Some games use just one technique, while ...
Animated Sakura Tree created by following a Youtube tutorial. The size of tree, color of leaves and animations all can be modified as needed. Watch the tutorial here.