implemented Entity::setAnimationFrame