Godot Version
v4.7.2.stable.mono.official [ed1daf0bf]
Question
I have a scene that controls main gameplay (it has player, enemies, handles loading/unloading levels, etc), and to hide that split second when things are being set up (like player being moved to proper position) I’m throwing loading screen at the player.
It generally works (meaning that short set up moment is not visible with the loading screen), but once that scene is entered, there is like a single frame of grey screen (something you would see when launching empty scene), and despite my greatest efforts I couldn’t get rid of it. None of the other scenes are affected (like main menu).
To hide the problem I’m placing loading screen as very first node in the game scene (afaik scenes load from top to bottom), and instantly enabling it to hide the grey screen, and other nodes have all the time they need to enter the tree. But as I said - it doesn’t work. Grey screen is still visible for that split second.
The scene tree looks like this:
- Game
-
- LoadingScreen
-
- All remaining nodes
It happens even in exported release version, in case nodes load faster there.