...because it's 45 degrees up from your cursor and 45 degrees down)
targetPos += Vector2.Normalize(new Vector2(speedX, speedY)) * 180f; //45 should equal whatever number you had on the previous line
for (int i = 0; i < numberProjectiles; i++)
{...
How would I make an edible item grant the well-fed buff?
I have this, but my gut feeling tells me that it's incorrect.
public bool UseItem(Item item, Player player)
{
player.AddBuff((BuffID.WellFed) , 6000, true);
return false;
}
Thank you, and I'm also having a sprite issue. Does anybody know how Tmodloader registers different frames for different town NPC actions(i.e.Attacking, walking, and talking?) My animation for my town NPC is severely glitchy and is using the attack animation during the walk animation. Is this...
...is an example of how to make the npc use a gun and a projectile ----------------------------------
/*public override void DrawTownAttackGun(ref float scale, ref int item, ref int closeness) //Allows you to customize how this town NPC's weapon is drawn when this NPC is shooting (this...
Wait, I still need your help! Sorry. I ran my code and got the error "Not all code paths return a value" for this section of the code:
public override bool CanTownNPCSpawn(int numTownNPCs, int money)
{
for (int k = 0; k < 255; k++)
{
Player player...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.