Loop cant be global, depends on currentAnimation