Ignore this, as I solved the problem myself

FLRN1

Skeletron Prime
I made a dust that seemingly gravitates towards the player, but the spawn rectangle appears at the bottom right of my screen. How do I fix this?

private void SpawnDusts(Player player)
{
Dust dust;
Vector2 position = Main.LocalPlayer.Center;
dust = Main.dust[Terraria.Dust.NewDust(position, 1400, 1400, 235, 0f, 0f, 0, new Color(255, 255, 255), 1.046512f)];
dust.fadeIn = 1.92f;

dust = Main.dust[Terraria.Dust.NewDust(position, 1400, 1400, 235, 0f, 0f, 0, new Color(255, 255, 255), 0.58f)];
dust.fadeIn = 1.92f;

dust.position = Main.LocalPlayer.Center;
}
 
Last edited:
Back
Top Bottom