Consider the following snippet that uses the attached media file to display all the sprite frames:
create animated sprite 1,"media\action1.bmp",18,11,3
for i = 1 to 18*11
set sprite frame 1,i
sprite 1,100,100,3
wait key
next i
end
It starts fine, but as soon as it gets to the 10th frame, all sprites seem off. At some point I would like to grab any of the frames within the image but right now, I can't using this method. I suspect the frames aren't the same size. But regardless, what would be the best approach to grabbing any particular frame from this image, even if the sprite dimensions are not the same?
CSL