How to lock game for X mins?
Gamer2125
Member, PRO Posts: 8
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?
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
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