Question about scene transitions

I feel like I’m missing something obvious here… Is there a way to transition the next scene over the current scene, and then go back to the previous scene by transitioning over again?

For example:

  1. Main Menu --> (slide up and over main menu) --> Login
  2. Dismiss Login --> (slide down and over main menu) --> Main menu

I know this effect can be achieved using overlays, but then that prevents me from using overlays on the login screen.

Any ideas?

Not sure you need scenes for that just create a new display group, add all your stuff and do a transition.to on the display group to slide it in and then slide it out, once it is slide out or in just call the onComplete of the transition and do whatever you need to do like destroy the group etc.

Thanks Christopher. I did some more digging and found somebody asked this same question almost verbatim haha. I turns out that you can define your own transitions and use them with Composer. It’s an undocumented feature!

Not sure you need scenes for that just create a new display group, add all your stuff and do a transition.to on the display group to slide it in and then slide it out, once it is slide out or in just call the onComplete of the transition and do whatever you need to do like destroy the group etc.

Thanks Christopher. I did some more digging and found somebody asked this same question almost verbatim haha. I turns out that you can define your own transitions and use them with Composer. It’s an undocumented feature!