update charater animation.