tModLoader Boss Code Help

Tyser

Terrarian
First time writing something in the forum. I am writing the code of a boss for my mod and I noticed that light sourcers affects the sprite wierdly. I tried to change the drawn layer (using different combinations of DrawBehind) but the issue remains. I suppose I am missing something... How can I make the sprite looks always "bright" (like the moon lord, for example) without interacting wierdly with light sources and tiles?
 
In the NPC's PreDraw() hook, just set drawColor to Color.White
 
In the NPC's PreDraw() hook, just set drawColor to Color.White
Thanks! There is no PreDraw() for NPCs, but it worked with DrawEffects()
So:

Code:
public override void DrawEffects(ref Color drawColor)
        {
            drawColor = Color.White;
        }
 
Sure, but just an FYI there is indeed PreDraw() for NPCs (and PostDraw() too)
 
Back
Top Bottom