Loading Screen
Hey guys,
my app works
yes ![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
But it needs 1-2 seconds to load a level, I want to show up a loading screen, how is this
possible to do?
Thank you
))))
my app works
![:D :D](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/grin.png)
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
But it needs 1-2 seconds to load a level, I want to show up a loading screen, how is this
possible to do?
Thank you
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
Comments
Put it in an actor at the top of your scene (so that it covers all other actors in the scene).
Make its alpha 0 so that it doesn't show up.
When you press the button to go to the next scene, make the actor's alpha 1 so that the "Loading" shows up, then after .1 seconds go to your next scene as normal.
Cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Can you tell me exactly what to do in which level, I don't understand it completely
thank you
thx
Because how should I say that touch is pressed change alpha to 1 otherwise?
-when touch is pressed
change attribute- self.color-alpha-1
its easier to just make the "loading" image spawn on the previous scene (scene you are coming from)
but then my scene doesn't get loaded while loading screen is showed or?
When you press your button to go to the next scene, have a rule in it that says:
When touch is pressed
Change attribute 'Loading' to true
After.1 seconds change seen to next scene.
Then in the 'Loading image' have a rule that says:
If attribute Loading is true
Change self.alpha to 1
OTHERWISE
Change self.alpha to 0
THEN
In your next scene, put a rule somewhere that says:
Change attribute Loading to false
That should do it.
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io