Animation.readNextFrame

From Spheriki

Jump to: navigation, search

Gets the next picture from the animation for Sphere to use (like render it onto the screen, get its frame delay...).


Usage

void Animation.readNextFrame();


Examples

Play an animation continuously on the screen (ignoring the animation's delays or any frame rate limitation):

var anim = LoadAnimation("myfile.mng");
while (true)
{
  anim.readNextFrame();
  anim.drawFrame(20, 20);
  FlipScreen();
}


See also

Personal tools