item wear

Stanislav 5 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 1

I made a torch using the shooter module. It is also easy for inventory module.

But I thought that any torch goes out and wears out over time. The question is, is it possible to wear the item and how is it better?

Unity version:
Unity 2018.4.18f1 (64-bit)
Game Creator version:

That's a good question. If you have the Stats component (or a Local Variable if you don't have that module), you could add a Status Effect that wears off over time until the illumination of the torch reaches zero. 

However, it will only work while using the touch. Unfortunately, there's no way to keep track of stats/variables once the item is stored in the Inventory. this is something we'll be actively looking to change in the future.

So torches will work more like those phosphor bars where, once they are broken, their effect will last up until a certain amount of time, without being able to "pause" the wear.

Hope this helps!