Loading Screen

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Hey guys,

my app works :D yes :)

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 :)))))

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Make an image that says "Loading"

    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
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    The Loading image in level 1 or level 2 in this case?

    Can you tell me exactly what to do in which level, I don't understand it completely :)

    thank you
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Just additional Info, I have the level menu to select between 15 levels, and when switching to one I'd like to have a loading screen :)

    thx
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay but in case of this a have to create a new attribute or? :)

    Because how should I say that touch is pressed change alpha to 1 otherwise?
  • 3xL3xL Member Posts: 676
    it the actions. you do

    -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)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    in the actions of the loading image or?

    but then my scene doesn't get loaded while loading screen is showed or?
  • quantumsheepquantumsheep Member Posts: 8,188
    Make a boolean attribute called 'Loading'

    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
  • joel61joel61 Member Posts: 9
    Thanks this helped me out a lot
Sign In or Register to comment.