Jump to content

Need help with Spriter. Making a custom badge.


Recommended Posts

Posted (edited)

I am making a custom badge, but for some reason it appears invisible.
brokenbadge.png.3c35d53ead5fc3f02bb55299c1858e32.png

 

Here is my spriter file:

spriter.thumb.png.53bd375ec873dfdbf1c135478df98cf7.png

 

In my badge widget:

Badge._ctor(self, nil, owner, { 70 / 255, 112 / 255, 29 / 255, 1 }, "status_soul", nil, nil, true)

self.circleframe:GetAnimState():SetBank("status_soul")
self.circleframe:GetAnimState():SetBuild("status_soul")

self.circleframe:GetAnimState():SetPercent("frame", 0.2)

I named the compiled zip file status_soul, and put it in my mod's anim folder

Anyone know why it appears invisible in-game?

Edited by zaptrap
Link to comment
Share on other sites

i was messing around with badge widgets recently, this sounds dumb but have you tried playing the animation?

self.circleframe:GetAnimState():PlayAnimation("frame") or something similar.

Link to comment
Share on other sites

Oh my god I finally got it to work.

I renamed the animation in spriter to "frame", but it still didn't work

but then when I added a new "idle" animation, for some reason that causes it to work (even though idle isn't being used)

spriter is 10/10

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...