map loading

Hi!

I am making minor rollerball project, where are about 20 tracks. Here is screenshot about my level loading:

Problem is that sometime it just keep loading map/track for minutes that nothing happens. I have tried different delay node time and it works better if time is under 10seconds. Is there some other way or do I have to forget that delay node, i still have loading image. And tracks are very small

You shouldn’t do it like this. You are calling a delay and waiting for it to finish before you even call the Level Open. You can’t do it all in one function.

You need to store a reference to the widget, and remove it from the viewpoint after the new level opens. Game Instance is an ok place to keep the reference. It has to be somewhere that isn’t going to get reset when a new level opens.

Create Loading Widget,
Save Widget reference
Open Level
After Level is open, remove widget reference

How to do that save widget reference? I have almost every time used that current blueprint, but now lot of maps it works sometime and sometime not

Yes and i get that also working, when removed those 2 remove from parent. I still use delay, but it works now over 50 times in row. Also it is working if i remove delay, but then not loading screen, but my project loads map only few seconds, so that not bother me

Not sure if this will be useful for you but… I had some problems with Open Level. I was using a ForEach and I was was trying to load several levels at the same time… and of course that didn’t worked because the ForEach was firing to fast… it wasn’t waiting for the Load Level to finish. I ended up doing it like this:

a9474b923b.png