r/godot•
cremig

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

46
krystofklestilDesigner•

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.

4
logithss•

What do you mean kinda ugly?

2
cremigOP•

Just switching around scenes loos bad, that's what I meant.

0
logithss•

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

1
dwemthy•

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.

2
cremigOP•

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.

3