refactored CharAnim initialization