TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ alpha

int Terraria.Projectile.alpha

How transparent to draw this projectile. 0 to 255. 255 is completely transparent.
ExampleBulletsets this to 255, and the projectile aiStyle of F:Terraria.ID.ProjAIStyleID.Arrow automatically decreases alpha each tick, letting the projectile fade in quickly after being spawned. Useful for projectiles that look odd when initially spawned on the weapon because of texture overlap.
The Basic Projectile Guideteaches more about projectile fade in and out.
Defaults to 0.

Definition at line 155 of file Projectile.cs.

Referenced by Terraria.Projectile.AI_121_StardustDragon(), Terraria.Projectile.AI_151_SuperStar(), Terraria.Projectile.AI_152_SuperStarSlash(), Terraria.Projectile.DefaultToSpray(), Terraria.Projectile.HandleMovement(), Terraria.Projectile.ProjLight(), Terraria.Projectile.SetDefaults(), and Terraria.Projectile.VanillaAI().