Bypass navigation menu
RGB Classic Games
Keeping the classics alive
Currently hosting 566 great games!
Return to Chapter 2

Animate(X, Y, Image[Index], Duration)

Animates an image as described in the ExtPut function.

It automatically transfers and erases the image all in one step. The duration is the amount of time to pause between the transfer and erase stages of the function. This can help adjust the amount of flicker. (Do not confuse the duration for this function with the duration for the ExtSound, Noise, and 'Delay' functions. The duration here is in no way tied to clock ticks or the 8253 timer chip)

Parameters

X - Horizontal position of image
Y - Vertical position of image
Image[Index] - Integer array holding saved image starting at the specified index
Duration is a number 1 - 65535:
This is the amount of delay between transfer and erase of image

Examples

BASIC

CALL Animate(X, Y, Image%(0), Duration%)

PASCAL

Animate(X, Y, Image[0], Duration);