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)
:: impbox


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)
:: matt

Thumbs down

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

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

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

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 2020-12-01 23:50 | 0.013s | 4194k | Q:24