Hello guys,
I am creating a book for children and this book has one screen where the child will be able to listen to a song in her language. I am creating a book in English, Portuguese and Spanish so I have three songs to load depending on the native language of the child.
I was searching the composer documentation and some foruns and found out the LoadScene function, wich can load a scene without displaying it, right?
So, I have my menu.lua scene wich calls the loadingScene.lua scene. In the loadingScene.lua, I load a background image telling the user to wait some time, and in the scene:show (), ( phase == “did” ) I have:
call results = composer.loadScene( "musicaScreen2p", false) timer.performWithDelay( 1000, chama )
I put the LoadScene at this point because if I put it on the create scene, or show (phase==“will”), the background image wouldn’t appear. I guess the function would run and then call the chama function, wich is:
function chama() composer.gotoScene("musicaScreen2p") --this is the player scene end
So, this way my application is loading the songs. But what I would like is to know how many time does it take to load the scene. I tried to look for some property like .isSceneLoaded but I didn’t find it.
I wanted to know that so the transition between scenes would happen at the same time the player scene was finished loading, so the user wouldnt have to wait the same ammount of time every time he was going to this screen.
Thank you a lot,
greetings from Brazil