Transition between Levels?
How to do transitions between Levels?
I change the scene but it looks kinda ugly.
I am pretty new so explaining what what thing is doing would be nice.
Posted Apr 17, 2020, 3:24 PM UTC
How to do transitions between Levels?
I change the scene but it looks kinda ugly.
I am pretty new so explaining what what thing is doing would be nice.
Posted Apr 17, 2020, 3:24 PM UTC
What do you mean kinda ugly?
Just switching around scenes loos bad, that's what I meant.
Oh, so perhaps you could have a sort of screen effect going on when you enter or leave a "world". If you could explain the context of your game a little more, maybe we could help you
You can make your own transitions and play an "out" transition before changing scenes, then each scene plays its "in" transition when it loads. It's pretty easy to make a fade in/out with an AnimationPlayer node that animates a CanvasModulate's color to black to fade out and to white, or other color, to fade in. For more advanced transition events you could use a screen shader.
Just did it.
Puh, i sat 3 hours on this shit and it was so easy.
Well, at least i know it for the future now.
You can make a single scene that will be your entire game. One node (spatial or node2D depending on game type) called LevelScene which you'll use to to programmatically add a scene of the level as a child and queue_free it when exiting. An elegant solution I dare say, where you are in control.