Hi, there! I tried to find smth about this but unsuccesful. So, can anyone tell how to make a loading screen with progress bar? I understand that progress bar should be created manually. Question how to CHECK loaded material???
This is a tough question to answer because we don’t know what you’re loading and how your loading it. The other problem comes with Corona being a single threaded operation. So lets say your loading process is reading a single file that takes 10 seconds to load. Once you start loading that file, unless you break it down into chunks, that’s going to be one operation that blocks the UI from updating. You go from 0 to 100%.
If you can break your loading in to chunks, you could find some success. There are several forum posts and blog posts out there. Here are a couple I found:
http://ramblingprogrammer.com/?p=23
This seems to be what you need, however this was written a long time ago with Graphics 1.0. Today’s Graphics 2.0 positions everything by the center and we replaced setReferencePoint() with anchor points, so you may have to adapt the code.
https://forums.coronalabs.com/topic/36312-loading-bar/
Is a pretty simple way to build one. Notice how they have things broken up into loadable chunks.
Rob
Rob, thnx I think I got how to make I need.
This is a tough question to answer because we don’t know what you’re loading and how your loading it. The other problem comes with Corona being a single threaded operation. So lets say your loading process is reading a single file that takes 10 seconds to load. Once you start loading that file, unless you break it down into chunks, that’s going to be one operation that blocks the UI from updating. You go from 0 to 100%.
If you can break your loading in to chunks, you could find some success. There are several forum posts and blog posts out there. Here are a couple I found:
http://ramblingprogrammer.com/?p=23
This seems to be what you need, however this was written a long time ago with Graphics 1.0. Today’s Graphics 2.0 positions everything by the center and we replaced setReferencePoint() with anchor points, so you may have to adapt the code.
https://forums.coronalabs.com/topic/36312-loading-bar/
Is a pretty simple way to build one. Notice how they have things broken up into loadable chunks.
Rob
Rob, thnx I think I got how to make I need.