GLBasic User Manual

Main sections

DRAWANIM

DRAWANIM id%, anim%, x%, y%



Draws the animation frame anim% of sprite number id% to the position x%, y%.

LOADANIM "test.bmp", 0, 32,32
FOR x=0 TO 16
FOR y=0 TO 16
DRAWANIM 0, x + y*16, 36*x, 36*y
NEXT
NEXT
SHOWSCREEN
MOUSEWAIT

See also...