Problem with LoadAnimImage
Blitz3D Forums/Blitz3D Beginners Area/Problem with LoadAnimImage
| ||
I have been having a problem with this piece of code.PlayerImg =LoadAnimImage ("Pie Commander\PCommander Monkey.gal",35,45,0,3)
If(PlayerImg = 0)
RuntimeError("The file PCommander Monkey.gal has Not been loaded/err code 2")
EndIf
The run time error always triggers and I don't know why. Any help would be appreciated. |
| ||
| B3D doesn't support the .gal filetype -- you need to use either BMP, PNG or JPG. |
| ||
| Okay thanks for pointing that out for me. :) (it wasn't working with the BMP's, but It is ok with PNG format?) Well now I need to go find out how to make bitmaps in those formats. Thanks xlsior. :) |
| ||
| It sounds like a Graphics Gale format You should be able to export the animation as a single image. |
| ||
| (it wasn't working with the BMP's, but It is ok with PNG format?) It should be working with 24-bit BMP as well -- but PNG's would typically be smaller in filesize. But note that the LoadAnimImage is expecting an image strip -- e.g. if you have three 64x64 frames that you're loading, it will expect a 192x64 pixel image strip that contails all three frames side-by-side. |