i have a problem with transitioning! For example: i have an object and a button. I want this object to fade out when i press the button, and then when i press the button again i want my object to fade in. But i can't fade in my object, feels like it's just gone! For transition i use transition.to, for ex:
object = transition.to( object, {time=500, alpha=0})
but when i perform another function in this exact scene to fade in, it just don't wanna work at all(button is pressing, but nothing is happening, even errors).
Help me out please!