Hi,
At the risk of being uber flamed! I've been searching the forums and can't find a solution to my sprite problem.
I'm trying to create an animated sprite using a bitmap which is 35 pixels wide x 15 pixels high (to make a 3 stage sprite of 35 wide by 5 high) and display it animating on the screen.
My code is....
`Create an animated sprite
set display mode 640,480,32
hide mouse
create animated sprite 1,"c:\dark basic professional\sprlink.bmp",35,5,2
sprite 1,50,50,2
play sprite 1,1,3,10
`stop prog from ending
repeat
until upkey()
end
The code displays a sliver of the image on the screen (not the whole sprite) and doesn't animate it.
I've also been through the manual for the command and checked the Jessticular help but neither are particularly clear.
The create animate sprite command has 5 variables:
Sprite No - the animated sprite I'm creating
Filename - filename of the image I'm pulling the 3 sprites from
Across - the width of each sprite in the image (35 for my example)
down - the depth of each sprite in the image (5x3 for my example)
image number - is this the image to which the 'sprlink.bmp' file is saved in memory?
Any help as to what I'm doing wrong would be appreciated.