Log In  

I think palt() should be just replaced with a single variable that denotes color to be used as transparent, which defaults to 0. Because frankly, we don't need multiple transparent colors, I can't think of a single scenario where this would be useful.

P#13851 2015-09-08 10:52 ( Edited 2015-09-09 13:31)

I have played around with two different uses of multiple transparency, both aimed at reducing the number of sprites needed for certain effects. First, a particle effect using small sprites with few colors. You can pack, say, four 4x4 sprites into a single 8x8 sprite using different colors. Then use palt() to hide the ones you don't want and pal() to remap the color. (You could probably achieve the same effect by (ab)using clip() to mask out the parts you don't want.)

The other use was for a hydra monster with multiple heads that can be chopped off and regrown. Rather than having a single sprite for each different number of heads, I have one sprite with seven heads, all in different colors, and use palt() and pal() to select which ones will be drawn.

P#13856 2015-09-08 12:59 ( Edited 2015-09-08 16:59)

Dude, you need to stop making all these threads in editor. This is just wrong, palt is very useful. See my fast life cart for one method, but being able to make any color transparent is super important for optimization and redrawing effects over the existing screen. Why would you want zep to waste time removing functionality?

P#13886 2015-09-08 21:07 ( Edited 2015-09-09 01:08)

-1

multiple transparent colours are useful. for example, in tempest the shoreline sprites are "rainbows" and i can map all the colours to sand colour and then control the thickness with palt.

P#13891 2015-09-08 23:25 ( Edited 2015-09-09 03:25)

Thumbs down

P#13909 2015-09-09 07:57 ( Edited 2015-09-09 11:57)

-1 That option is useful for so many things..

P#13914 2015-09-09 09:28 ( Edited 2015-09-09 13:28)

Too noob to have an opinion aside from thumbs up for making people defend it :P very interesting to hear about different ways such a feature is useful from people.

P#13915 2015-09-09 09:31 ( Edited 2015-09-09 13:31)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 11:51:19 | 0.008s | Q:21