tModLoader Glowmask effect ( Help pls ) ( Armor ) ( Crash program and errors )

S-Pladison

Spazmatism
Where is this and where is the error?

public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
spriteBatch.Draw
(
mod.GetTexture("items/MyItem_Glowmask"),
new Vector2
(
item.position.X - Main.screenPosition.X + item.width * 0.5f,
item.position.Y - Main.screenPosition.Y + item.height - texture.Height * 0.5f + 2f
),
new Rectangle(0, 0, texture.Width, texture.Height),
Color.White,
rotation,
texture.Size() * 0.5f,
scale,
SpriteEffects.None,
0f
);
}
 
[I AM RLY SORRY IF THIS REPLY HAS GRAMMATICAL ERRORS]
mod.GetTexture("items/MyItem_Glowmask")
between these two ~(" ") u must point where your glowmask sprite is
but im also having a problem with SpriteBatch missing
 
Back
Top Bottom