PNG vs GIF

tightninja

Member
Iam trying to use png files insteand of gif but keep getting this error. The message does not provide much info.

Error loading file 'data/bgs/routec/mall/bestalt.png'Total Ram: 17005608960 Bytes ( 16217 MB )

when i use a indexed gif at 256 the level loads but the original png has a palette sizeof 251. Does this matter, doe is need to be divisible by 4? Do all images need to be indexed?
 
Iam trying to use png files insteand of gif but keep getting this error. The message does not provide much info.

Error loading file 'data/bgs/routec/mall/bestalt.png'Total Ram: 17005608960 Bytes ( 16217 MB )

when i use a indexed gif at 256 the level loads but the original png has a palette sizeof 251. Does this matter, doe is need to be divisible by 4? Do all images need to be indexed?

Yes, they must be indexed. The background can be an RGB .png, but layers and sprites must be indexed. This was true of .gif too, but .gif only has an indexed mode. :)

The number of colors used is immaterial.

DC
 
I assume Panels must me indexed as well correct? that is the source of the error

Yes. When I said anything but background, I wasn't meaning background as in scenery. There is a single image you can add that goes behind everything named "background". That may be a 24 bit .png file. Everything else is indexed. If you must have RGB color, that is supported through splitting the image into three files - one for each RGB channel) and using alpha masking.

DC
 
Back
Top Bottom