Hello, the title kind of says it all, but I’ll explain my situation.
I have an object we will call hero. hero has an energy property hero.energy
hero.energy = 100 and certain actions take away hero’s energy
over time hero regains his energy and I was hoping to do this with a transition function coupled with a runtime listener.
But I have found out that transition.to (object, params) does not allow for the transition to a specific value
I was assuming it would look something like this
transition.to( hero.energy, {time = 5000, value = 100})
obviously, that does not work. I was hoping someone knew of a way to achieve this or have I not dug far enough into the transition function to figure it out.
Thanks