Log In  

I need to use black in some sprites, how do I do that?

P#44773 2017-09-30 13:09 ( Edited 2017-09-30 17:39)

:: solar

Use

palt(0,false)

just before you try to do that.


palt c t

    Set transparency for colour index to t (boolean)
    Transparency is observed by spr(), sspr() and map()
    e.g. palt(8, true) -- red pixels not drawn
    palt() resets to default: all colours opaque except colour 0


P#44774 2017-09-30 13:39 ( Edited 2017-09-30 17:39)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-07-16 03:53 | 0.008s | 4194k | Q:11