skip scene after it has played once

ParrotyGamesParrotyGames Member, PRO Posts: 15
edited September 2014 in Working with GS (Mac)

I have an intro scene on my game that plays at the start of the game.

After each "game over" on the actual game, the round gets reset with a "reset game" behavior when the user clicks on "restart". Since it restarts the game, each time it also plays the intro scene. I do not want this to happen, I only want that intro scene to play once when the user first loads the game. How can I do this?

And to further throw a wrench in things, I would like it to display an interstitial advertisement every 3 times the user clicks on "restart" (the restart button is a reset game behavior.)

Is this all possible?

Comments

  • ParrotyGamesParrotyGames Member, PRO Posts: 15

    bump

  • MattButlerStudiosMattButlerStudios Member Posts: 486

    1) To make the intro scene play only once, make a boolean attribute called intoScene. Make a rule inside of the play intro scene button that says once the intro scene is finished to change intoScene to true. Then inside of the area that activates your intro scene set another parameter that only allows it to play when introScene is true.

    2) To make it so that an interstitial ad is displayed every 3 resets, make an index attribute named resetCount. Make a rule before the reset game behavior that adds 1 to the existing number for resetScore. when touch is pressed (and resetScore < 3). change attribute game.resetCount to resetCount + 1. . Have 2 reset game behaviors. One that is only triggered when resetCount is < 3 and one that is triggered when resetCount = 3. Lastly, make a rule in the (when resetCount = 3) that states when resetCount = 3 change attribute resetCount to 0.

    I know this is a lot of info and I may have made it sound a bit confusing. Let me know if you need any additional assistance. -Matt

  • ParrotyGamesParrotyGames Member, PRO Posts: 15

    thank you will give it a try :)

  • ParrotyGamesParrotyGames Member, PRO Posts: 15

    can't seem to make it work. when the game is reset, it doesn't seem to remember the boolean attribute and plays the intro scene anyway

  • ParrotyGamesParrotyGames Member, PRO Posts: 15

    also how do I do the reset count thing? I don't see index attribute, only boolean integer, and real. Do I put it in as "change attribute"?

    Thanks :)

  • iKandyiKandy Imagineer of Crazy Shit New York CityMember Posts: 310

    Did you ever figure out how to do this?

    (Obviously, when you reset the game it would reset the boolean "introscene" to the default state so that technique would not work.)

  • iKandyiKandy Imagineer of Crazy Shit New York CityMember Posts: 310

    you would have to save the "introscene" value at the end of the game, and reload it upon restart.

Sign In or Register to comment.