How to lock game for X mins?

Gamer2125Gamer2125 Member, PRO Posts: 8
edited January 2014 in Working with GS (Mac)
Hello,

I am creating a game which will have a feature where if user loses all their lives, they will have to wait for X mins. Can anyone help how to create this feature for my game?

Comments

  • tylerglessnertylerglessner Member Posts: 246
    Let me just say that restricting players from...well..playing, will not go over well in the end
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Let me just say that restricting players from...well..playing, will not go over well in the end
    :)

    Although with the right IAP pricing structure, this could make bank!*

    There are multiple ways to do this but I recommend using a Pause Game behavior. That will overlay another scene and you can just keep track of the time with a time stamp:

    When game.lives <= 0
         change game.timeStamp (real) to game.Time + 5*60
         Pause Game

    Then on the pause scene, have an actor with this rule:
    When game.time >= game.timeStamp
         Unpause Game

    *I get so tired of this type of IAP use...

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Gamer2125Gamer2125 Member, PRO Posts: 8
    Thank you for your comments and suggestions :) This definitely helped. :)
Sign In or Register to comment.