Hello Everyone Im modding a Sword i Cant find a way to Make it animated.

Mr_Cascante15

Terrarian
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, here is some help

It's a really good tutorial series, it shows you all the basics in 1.4, he also has a 1.3 tutorial playlist and a lot of it is easy to convert to 1.4
 
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.
    }
 
Back
Top Bottom