transition.dissolve missing; here it is

With the introduction of Transition 2.0, it seems transition.dissolve was removed (though there is no mention of it in the daily build release notes). The documentation for transition.dissolve has also been removed, so it looks like the function is gone for good.

Here’s a replacement function for anybody who uses transition.dissolve in their projects and don’t have time to switch everything over to transition.to just yet (but still want to take advantage of the daily builds):

transition.dissolve = function(from, to, duration, delay) if (not duration) then duration = 0; end if (not delay) then delay = 0; end local alphaStart = from.alpha or 1.0; local alphaEnd = to.alpha or 0; transition.to(from, { delay=delay, alpha=alphaEnd, time=duration }); transition.to(to, { delay=delay, alpha=alphaStart, time=duration }); end

Just put that anywhere in your code, such as main.lua *before* attempting to call transition.dissolve().

Thanks man, but this isn’t working for me. It makes the bug go away, but there’s no transition.  I’ll have to do some more experimenting to figure out what transition.dissolve was doing before.

Meanwhile, RUDE! Dear Corona Gods, I’m sure this was just a momentary lapse in judgement which will nevertheless last through the weekend. I’ll just backdate my installation until you fix it.

edit: On second thought, now I’m screwed until it’s fixed, apparently. I tried uninstalling 1210, and then re-installing all the way back to 1172, but transitions are still messed up. How could that happen?

Thanks man, but this isn’t working for me. It makes the bug go away, but there’s no transition.  I’ll have to do some more experimenting to figure out what transition.dissolve was doing before.

Meanwhile, RUDE! Dear Corona Gods, I’m sure this was just a momentary lapse in judgement which will nevertheless last through the weekend. I’ll just backdate my installation until you fix it.

edit: On second thought, now I’m screwed until it’s fixed, apparently. I tried uninstalling 1210, and then re-installing all the way back to 1172, but transitions are still messed up. How could that happen?

I am still using the transition.dissolve() function in my code and it stil is working and no warning occurs.

But I wonder why this function was taken out of the program and furthermore, why it is nowhere written. At least I did not find anything but that thread about it.

I am still using the transition.dissolve() function in my code and it stil is working and no warning occurs.

But I wonder why this function was taken out of the program and furthermore, why it is nowhere written. At least I did not find anything but that thread about it.