Jump to content

Recommended Posts

Well this is the thing, i've been making my own custom item mod from the begining, trying to make everything from the start, and i have a problem: with spriter i've made the IDLE animation for the item while staying in the ground and works fine, but i can't make it visible while handed. I'm almost sure that the problem is in this part:

 

local function onequip(inst, owner) 

    owner.AnimState:OverrideSymbol("swap_object", -- Symbol to override.
    "whip", -- Animation bank we will use to overwrite the symbol.
    "whip") -- Symbol to overwrite it with.
    owner.AnimState:Show("ARM_carry") 
    owner.AnimState:Hide("ARM_normal") 
end
 
I'm using spritter, the entity name is whip, the two animations i added are "idle" and "BUILD" but doesn't work. Any help will be extremly apreciated.

(While making the animations, sometimes a random image from my image folder was shown, but the image name "wea" "image1" or "f***ingimage", and those names were never in the sript file)

(Sorry for my bad english)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...