Yeah, made two weapons so fargetting into coding I see
// Help, my gun isn't being held at the handle! Adjust these 2 numbers until it looks right.
/*public override Vector2? HoldoutOffset()
{
return new Vector2(10, 0);
}*/
thank you!From ExampleGun.cs:
Add this under your class like everything else.Code:// Help, my gun isn't being held at the handle! Adjust these 2 numbers until it looks right. /*public override Vector2? HoldoutOffset() { return new Vector2(10, 0); }*/
Is this working for melee weapon?From ExampleGun.cs:
Add this under your class like everything else.Code:// Help, my gun isn't being held at the handle! Adjust these 2 numbers until it looks right. /*public override Vector2? HoldoutOffset() { return new Vector2(10, 0); }*/
I’d have to assume it works for any item.Is this working for melee weapon?
mine isn't working for melee, so i used different approach
hmm, but the documentation said it's only working for itemstyle=5 (which is not sword), and I can't use that in my sword.I’d have to assume it works for any item.
Kiwi, thank you for all the sprites you’ve done for, our, my, mod. It was an honor working with you, I hope you the best on what’s going on in your life and what you do in the future. Thank you!
[doublepost=1519422210,1519421985][/doublepost]To add to that last one, may I use your dev armor as normal armor? As remeberance of you?
Any chance you could show that workaround? this is something I'm really struggling with. I drew a pink square around my sprite, and it seems to only be detatched only when the sword is large. HoldoutOffset and HoldoutOrigin work for type 5 attack styles like staffs and bows, but sadly not for swords.hmm, but the documentation said it's only working for itemstyle=5 (which is not sword), and I can't use that in my sword.
But let's wait for @ThatOneKiwi's response, if it isn't work, i can show my workaround.