Hello, im new to mods and being trying to figure out how things work, thre troub is that the isnt updated info about animations and that stuff and the things on forums is too old and doesnt work anymore
Hi! You can do this for make an animation item/sword:
- First you will need Terraria.DataStructures in the code, just like this:
Code:
using Terraria.DataStructures;
- Then, in the middle of your code (SetStaticDefaults) you will add some codes:
Code:
public override SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(10, 9)); //the right number (9) is the ammount of frames your item/image has.
}
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.