Loading progress during gotoScene()

Hi everyone,

I wonder if and how it is possible to show some kind of a loading progress while a scene is build. What we have so far is a simple loading text which is displayed before gotoScene(). The trick here was to call gotoScene() inside a timer.performWithDelay().

The problem now is no matter how we’re trying to change the loading text (timer, performWithDelay) it is not updated until the scene is completely created.

So the loading text first shows:

“Loading 0%”

then

"Loading 100% "

but nothing in between. Any suggestions are welcome!

Hi, we are using a little trick to achieve something like a loading bar :wink:

Basically, we have tested our Apps on all supported iOS Devices and checked the actual loading time.

Then we are showing an animation that finishes just before the game has loaded :wink:

This is just one way to handle this, but it does not help you in your situation I guess.

If you could post your function code that updates the progress, we could help you better :slight_smile:

Max / CineTek

Thanks, Max, for the idea with the animation. Unfortunately it doesn’t work an Android devices (at least the one we have). The animation stops right after frame 1 no matter what animation time we set (or no time at all). Frame 2 is then shown right before the scene transition - so we’re back to 0%, 100% and nothing in between.

I guess it is simply not possible then :frowning: but thanks anyway.

BTW: Wouldn’t it be more handy to let the device automatically measure the time the first time the animation is shown, save the result in variable and use it the next time? Just a thought :wink:

Hi, we are using a little trick to achieve something like a loading bar :wink:

Basically, we have tested our Apps on all supported iOS Devices and checked the actual loading time.

Then we are showing an animation that finishes just before the game has loaded :wink:

This is just one way to handle this, but it does not help you in your situation I guess.

If you could post your function code that updates the progress, we could help you better :slight_smile:

Max / CineTek

Thanks, Max, for the idea with the animation. Unfortunately it doesn’t work an Android devices (at least the one we have). The animation stops right after frame 1 no matter what animation time we set (or no time at all). Frame 2 is then shown right before the scene transition - so we’re back to 0%, 100% and nothing in between.

I guess it is simply not possible then :frowning: but thanks anyway.

BTW: Wouldn’t it be more handy to let the device automatically measure the time the first time the animation is shown, save the result in variable and use it the next time? Just a thought :wink: