Monarch transitions issue (SOLVED)

Hi all,

Let say I have screen1 and screen2, and I use Monarch to load the screens.
screen1 is loaded -> show_in is called.
Then I load screen2. However, screen1- show_out() and screen2 - show_in() will be called at the same time. Is there anyway to get screen2 - show_in() only called once the screen1 - show_out() is done?

Thanks a lot!

Why do you need this behaviour? Because of the transition or some other reason?

Because it creates a very weird flash during the transitions in my case and make the transition feel like it’s not smooth. It looks like some graphic interference.

Maybe you can take a look at this simple repro and let me know if you understand what I meant:
Monarch-transition.zip (900.4 KB)

I’m having trouble with this and I think maybe the behavior I asked will solve this problem.

Ok, I see what you mean. The problem is that the first screen has a black full screen node which fades out when the screen is hidden. The second screen has a yellow full screen node which slides in from left to right. Since both transitions start at the same time it looks a bit weird since the yellow node is below the black one and when the black one fades out it flickers a bit.

The easiest fix would be to set a delay on the slide in animation of the yellow full screen node so that it happens after first black node has faded out.

1 Like

Thanks for your answer.

I try what you suggested and it fixed 1 side of the transitions.
However, I can’t figure out a way to make the smooth transition when the yellow full screen node fade out and the other screen fade in. I tried the similar method (set the delay on the slide in of the other screen node) but then the yellow screen fade out won’t be showed (since it’s below the black node :frowning: )

You can change the order in which GUI components are rendered using gui.set_renderorder().

1 Like

Thank you!

It works great now :smiley: