Hi all,
Can anyone shed light on why, occasionally, animations (movement or fading) will flicker , and why sometimes they don't. For example, I have a rectangle that I want to fade in and out. This is the fill code:
Switch(true,
fade,
RGBA(56, 96, 178, 0 + (MenuTimer.Value/MenuTimer.Duration)),
!fade,
RGBA(56, 96, 178, 1 - (MenuTimer.Value/MenuTimer.Duration)))
I have a button to make it fade in and fade out. This is the code for them:
True
Reset(MenuTimer_1);
Set(StartTimer, false);
Set(fade, true);
Set(StartTimer, true);
False
Reset(MenuTimer_1);
Set(StartTimer, false);
Set(fade, false);
Set(StartTimer, true);
And it ends up doing this:

I've had that flickering happen before when animating movement as well, and, sometimes, it doesn't do it at all. Like the below, where the buttons are set up pretty much the same, except I'm moving instead of fading:

or here:

I can only assume that in the instances where it isn't working, it's because it's not "saving" the end position of moving / fading in, so violently resets when I ask it to do the second part of the animation. Any ideas?