1. Put something like _MASK in the name of the 8 bpp graphicsfile with the animated colors.
This is also so you can more easily find those type of graphics in your folder. (just like you maybe do with _SNOW and _PURCHASE)
2. In your houses_32 graphics, DO NOT DRAW the animated colors in there! Only put those in the graphics you will use as a mask.
Also, dont draw them in the "regular" 8bpp graphics. Simply said, nowhere else than in your mask graphics.
By the way, not sure if you already do this, the "regular" 8bpp graphics could just be a file with only the blue boxes and nothing drawn in them.
Thats because the 32bpp graphics will cover those up anyway.
This should be the three graphics you will need for your test (I could not find special graphics for snow and/or purchasemenu):
houses07_8.png (the "regular" 8bpp graphics)
houses07_32.png (the 32bpp graphics)
houses07_MASK.png (the 8bpp graphics with the animated colors)
3.Now the code:
This:
Code: Select all
//spritesets with 4 directions, SNOW-version and the PURCHASE-menu
spriteset (spriteset_houses07) {
template_flat_low(0,0,"gfx/houses07_8.png")
}
alternative_sprites (spriteset_houses07, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "") {
template_flat_low(0,0,"gfx/houses07_32.png")
}
spriteset (spriteset_houses07_SNOW) {
template_flat_low(0,0,"gfx/houses07_8.png")
}
alternative_sprites (spriteset_houses07_SNOW, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "") {
template_flat_low(0,0,"gfx/houses07_32.png")
}
spriteset (spriteset_houses07_PURCHASE) {
template_flat_low(0,0,"gfx/houses07_8.png")
}
alternative_sprites (spriteset_houses07_PURCHASE, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "") {
template_flat_low(0,0,"gfx/houses07_32.png")
}
Should become this:
Code: Select all
//spritesets with 4 directions, SNOW-version and the PURCHASE-menu
spriteset (spriteset_houses07) {
template_flat_low(0,0,"gfx/houses07_8.png")
}
alternative_sprites (spriteset_houses07, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "") {
template_flat_low(0,0,"gfx/houses07_32.png", "gfx/houses07_MASK.png")
}
spriteset (spriteset_houses07_SNOW) {
template_flat_low(0,0,"gfx/houses07_8.png")
}
alternative_sprites (spriteset_houses07_SNOW, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "") {
template_flat_low(0,0,"gfx/houses07_32.png", "gfx/houses07_MASK.png")
}
spriteset (spriteset_houses07_PURCHASE) {
template_flat_low(0,0,"gfx/houses07_8.png")
}
alternative_sprites (spriteset_houses07_PURCHASE, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "") {
template_flat_low(0,0,"gfx/houses07_32.png", "gfx/houses07_MASK.png")
}
The changes:
In the alternative sprites blocks, I added the reference to the _MASK graphics
Thats all
However, as these tiles are for water only, I think you should add:
OBJ_FLAG_NOT_ON_LAND
to the object flags
and change :
GROUNDSPRITE_NORMAL
to
GROUNDSPRITE_WATER
for the purchasemenu's
Let me know if this works, I havent coded these changes, so just theoretical at the moment
