What would be the best way in Corona to create a “preloader”, that loads first and gives the user something to look at while the larger parts of the app are loading? [import]uid: 2862 topic_id: 289 reply_id: 300289[/import]
Hi,
if I’m not wrong, you can load an image before the app start (as splash screen).
Best
Ale
updated, taken from AppProgrammingguide.pdf
Launch Image
When your application launches, you can choose to display a launch image before your
application "nishes initializing and is ready to display its interface. By using an image that
looks like the initial user interface, you can create the illusion of a faster application launch.
Alternatively, you can use this image for a “splash screen” displaying your application title or
company logo.
The launch image should be named Default.png and be the dimensions of the screen. It
should be located in the assets project folder.
MyProject/
Default.png Icon.png
main.lua
… [import]uid: 940 topic_id: 289 reply_id: 388[/import]
You could also:
Show the firs PNG as described above.
THEN
- Load loaderimage
- Show loader image
THEN for each media file update the loader. (for example update the width of the loaderimage)
i don’t know if there is a function to get the filecount in the project or for a specific asterix like png, or wav etc.
If there is you could use that to update the loader.
Cheers and succes,
Jespar
[import]uid: 2734 topic_id: 289 reply_id: 389[/import]
Cool! Thanks - I’ll try it! [import]uid: 2862 topic_id: 289 reply_id: 391[/import]
I have tried something you could maybe use or modify:
http://developer.anscamobile.com/forum/2009/12/05/really-simple-loader-example [import]uid: 2734 topic_id: 289 reply_id: 395[/import]
@willsingleton did you succeeded with the loader ? [import]uid: 2734 topic_id: 289 reply_id: 408[/import]
thats my next step - I’ll let you know -Thanks for the help! [import]uid: 2862 topic_id: 289 reply_id: 412[/import]