Eldrazi
Eater of Worlds
To fix it just remove those lines hardcoding the velocity of your projectile.So how to fix it? and btw: is there any thread explaining all projectile.* types?
If you want a shuriken like AI, just use the following:
Code:
public override void AI()
{
projectile.rotation += (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y)) * 0.03f * (float)projectile.direction;
projectile.ai[0] += 1f;
if (projectile.ai[0] >= 20f)
{
projectile.velocity.Y = projectile.velocity.Y + 0.4f;
projectile.velocity.X = projectile.velocity.X * 0.97f;
}
}
As for your second question: no, not that I know of. Just take the trial and error route to get your answers.