DarkBASIC Professional Help Wiki
Advertisement


This command will play an animation on the screen or to the current Bitmap.

Syntax
PLAY ANIMATION Animation Number
PLAY ANIMATION Animation Number,X,Y
PLAY ANIMATION Animation Number,X,Y,X,Y
PLAY ANIMATION Animation Number,Bitmap Number,X,Y,X,Y
Parameters
Animation Number

Integer
This value specifies the animation number, between 1 and 32 Bitmap Number Integer
This value specifies the bitmap to draw to X Integer
This value represents the X coordinate of the top left corner of the area to be drawn Y Integer
This value represents the Y coordinate of the top left corner of the area to be drawn X Integer
This value represents the X coordinate of the bottom right corner of the area to be drawn Y Integer
This value represents the Y coordinate of the bottom right corner of the area to be drawn

Returns

This command does not return a value.

Description

By default, animations are played to the screen. You must provide an Animation Number of a previously loaded animation file. You can optionally provide either one or two sets of X and Y Coordinates to place and resize the animation anywhere on the screen.

Example Code
LOAD ANIMATION "video.avi",1

PLAY ANIMATION 1,0,10,10,20,20

WAIT KEY
Advertisement