Jump to content

Recommended Posts

@Dogmeat8990
Glad you fixed it!  I'm not very familiar with Spriter animations, but if I had to guess, you added the ear textures, and positioned them in Spriter, but didn't move the little orange dot for the ear textures that determines where the textures will actually appear once you're playing the game.

@chrysomelidae
Yes!  I've had a decent amount of experience with item durability!
Here's the basic code you need:

--This goes in a function.
if inst.components.finiteuses then
	inst.components.finiteuses:Use(###)  --Number of uses consumed.  This value can be positive, negative, or a non-whole number.
end


--This goes in,,  idk, mine says "local function ice_den()  --Used to code individual tents(?)"
inst:AddComponent("finiteuses")
inst.components.finiteuses:SetMaxUses(###)  --Set a number that will be used to display the item's percentage value.  This has nothing to do with the number of uses actually available!
inst.components.finiteuses:SetUses(###)  --Set number of uses available.
inst.components.finiteuses:SetOnFinished(inst.Remove)

 

Edited by FurryEskimo

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...