So, i know how to add basic particles that leave a trail after a proj, but how can i make it spawn in different shapes?

So, to add basic particles you need to type something like this:

C#:
public override void AI()
            {
            Dust.NewDust(projectile.position, projectile.width, projectile.height, DUSTIDHERE);
            }

Or to add custom paricles like this:

C#:
public override void AI()
    {
            if (Main.rand.NextBool(3)) {
            Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, DustType<YOURCUSTOMDUSTNAMEHERE>(), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
       }
    }

But how can i make it spawn in different shapes like: squares, stars, circles? In mod Antiaris (which is awesome btw) there is a weapon called "Terra Spear" and it creates circle-shaped dust trail. I know that Antiaris is open source, but i dont want to straight up steal the code. So, for an example I want to make a projectile that will spawn particles in a shape of a square after the projectile is kill. If its possible, and anyone knows how to do that, please, comment here.

Thanks.
 
Back
Top Bottom