Skipping scenes?

master200012master200012 Member Posts: 372
edited August 2012 in Working with GS (Mac)
From my title screen, you hit the play button. When pressed, it takes you to a second scene where you choose a game mode. After you choose a mode, you hit another button which takes you to the level where you play the game. When you win/lose, you have an option that takes you back to the first screen.

The problem is, sometimes it takes you directly to the third scene from the first scene.

Any suggestions?

Best Answer

Answers

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Interesting...so in your button all you have is a change scene to what...scene 2? Do you have anything about scene 3?


    -sent from my rain forest. ;)
  • master200012master200012 Member Posts: 372
    Actually, it's the same button with a change scene to next scene, present in both scene 1 and scene 2.

    @Braydon_SFX - sent from my share of the Amazon. :P
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited August 2012
    So you could just create booleans (game.level1, level2 etc.) and use them in a rule:

    If attribute game.level1 is true, when touch is pressed,
    Change scene to level 2
    Change attribut game.level1 to false,
    Change attribute game.level2 to true

    -sent from my solid gold boat on my solid gold lake.
  • master200012master200012 Member Posts: 372
    I think you misunderstood me. My problem isn't really level selection. It's the fact that sometimes my game skips the level select screen altogether (sorry if I was unclear).

    So, yeah.

    @Braydon_SFX - sent from my digital copy of my ownership of Antarctica.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    ...maybe wrap it in a timer?

    Rule: when touch Is pressed,

    Timer: after 0.5 seconds, change scene to level select.

    - sent from my regular mailbox.
  • master200012master200012 Member Posts: 372
    Should I run to completion?

    @Braydon_SFX
    -sent from the post office
  • master200012master200012 Member Posts: 372
    Now it works occasionally. After the first 2 tries (when it worked fine) it started skipping scenes again. Got any clues about this?

    @Braydon_SFX - can't find your mailbox, either. ;)
  • master200012master200012 Member Posts: 372
    edited August 2012
    Oh, I've got it now. What I think was happening, was I had the scene not restore itself before it switched, so the rule was still in effect, which resulted in it trying to continue directly after the first use. So, thanks for your help, Braydon_SFX!

    Just going to mark your last response as correct to keep things organized.

    Sent from my happy place!
Sign In or Register to comment.