In "CREATE ANIMATED SPRITE 1,"ogreattack.bmp",13,8,5".
1 = The sprite number you want to create
13 = The number of frames across
8 = The number of frames down
5 = The image number you want that sprite to use
It's made for sprite sheets where there are multiple images on one image arranged right next to each other so it's easy to grab each frame properly.
` Make the program handle graphics as fast as it can
sync rate 0
` Take control of when the screen updates
sync on
` Hide the mouse cursor
hide mouse
` Load the sprite sheet into an animated sprite
create animated sprite 1,"GrogMegaSprite.png",10,1,1
do
` Show the sprite
sprite 1,mousex(),mousey(),1
` Play the sprite (show frames 1 to 10 changing every 100 milliseconds)
play sprite 1,1,10,100
` Update the screen
sync
loop
The above code snip uses CREATE ANIMATED SPRITE but because there are less frames in the image (attached) the numbers are a bit different. The image has only 10 frames across and 1 frame down.
What's probably happening is that image (ogreattack.bmp) needs to be in the same directory as your code for it to be able to load the file.