Search results for query: *

  1. G

    tModLoader Official tModLoader Help Thread

    Thank you so much, that seemed to fix it. Now all I need to worry about is the sprite offset because that is heckin wonky at the moment.
  2. G

    tModLoader Official tModLoader Help Thread

    ...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++) {...
  3. G

    What is the Frame Skip?

    Ok, I enabled frameskip and now everything that I do in the game seems sped up 2X. Is that normal?
  4. G

    tModLoader Official tModLoader Help Thread

    How do you assign a town NPC head sprite to a town NPC? Is it a line of code? Do you have to name the head sprite file something special?
  5. G

    tModLoader Official tModLoader Help Thread

    Thanks you
  6. G

    tModLoader Official tModLoader Help Thread

    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; }
  7. G

    tModLoader Official tModLoader Help Thread

    Ok, Thank you for helping.
  8. G

    tModLoader Official tModLoader Help Thread

    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...
  9. G

    tModLoader Official tModLoader Help Thread

    Ok, I used hero mod to manually spawn the NPC and it worked! Now I just need the NPC to be able to spawn automatically.
  10. G

    tModLoader Official tModLoader Help Thread

    Should I convert another world to hardmode, so the spawn requirements are freshly met?
  11. G

    tModLoader Official tModLoader Help Thread

    Ok so the NPC has not spawned yet :(
  12. G

    tModLoader Official tModLoader Help Thread

    Oh, and I am using my main world which I play on which is already in hard mode to test it out.
  13. G

    tModLoader Official tModLoader Help Thread

    Would the spawning be instantaneous, or should I wait a bit?
  14. G

    tModLoader Official tModLoader Help Thread

    Ok, It loaded now. I will update you if it works or not.
  15. G

    tModLoader Official tModLoader Help Thread

    ...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...
  16. G

    tModLoader Official tModLoader Help Thread

    Thank you so much for helping me by the way, but I am still getting the error message. Should I paste my entire code in?
  17. G

    tModLoader Official tModLoader Help Thread

    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...
  18. G

    tModLoader Official tModLoader Help Thread

    Actually nevermind I found out how to do it on a different wiki, but thanks for your past responses anyways!
  19. G

    tModLoader Official tModLoader Help Thread

    I am trying to make my town NPC spawn after the Wall of Flesh has been defeated, but I do not see it on the list.How would I do that?
  20. G

    tModLoader Official tModLoader Help Thread

    Thank you so much, I will fix my code and post and update if it works
Back
Top Bottom