int AnimatedElement::update(GameState* context, float delta)
{
  // Animate
  if(!hidden)
  {
    frame_current += frame_speed*delta;
    loopAnim();
  }

  // Move destination rectangle to position of object
  destination.setPosition(owner->getPosition() + offset);

  // No interruption
  return SceneState::CONTINUE;
}
void AnimationIncarnation::setFrame(float new_frame)
{
    frame_current = new_frame;
    loopAnim();
}