Topic was automatically imported from the old Question2Answer platform.
Asked By
jospic
Old Version
Published before Godot 3 was released.
Hi,
is there any example that shows how to implement a change scene with animations transition (Tween class?). like a sliding from previous scene to next?
Thanks
-j
Do you have problem with the animation, or the way scenes must be loaded?
Zylann | 2016-04-27 02:24
no problems with the animations, but would like to understand how to apply them to different scenes during loading from previous to the next
Thanks, I know that tutorial, but I need something more complex
jospic | 2016-04-27 11:06
What do you need exactly? Do you need a fade that directly goes from scene 1 to scene 2 without in-between?
Zylann | 2016-04-27 15:12
Yes, this is an idea. But I’d like more of a sliding effect from one scene to the other.
For example, the first flowing to the left side leaving the next scene enter from the right .
Sorry for my poor English, I do not know if I was clear enough.
If you need to see the two scenes while the transition is active, you have two options:
Make a screenshot of the current scene, put it on a fullscreen quad, unload the scene, load the next behind and do what you want with the sprite and the next scene’s viewport.
I would choose this solution if your scenes are really big, as it doesn’t requires twice as much memory. Otherwise, I would do 2).
Load the next scene under a Viewport node so you have the two scenes loaded at the same time, but rendering on two different viewports. Then all you have to do is animate those viewports, blend them together with a masking shader, slide their rect etc.
I never experimented with Viewports, but I think that’s what you are looking for