Daily Rewards System

Hey team,

I have been working with a slot app and trying to build a Daily Reward System within the app to reward the user daily at a specific time. I have used the following route to get this to work and it works great besides it only shows the actor that spawns at exactly 12PM and if the user is not on there at 12PM then it disappears. Is there anyway to get this to work and show the actor until the user clicks the actor rather than at a specific time?

Create an integer attribute called savehour

Then create an actor with the following 2 rules

If attribute savehour is NOT equal to 12 (or any hour you want) change self.alpha to 0

When touch is pressed AND attribute savehour = 12 (or any hour you want)
Open scene daily bonus

Then put another actor in any scene you want to create the daily bonus from with the following rule

Change attribute savehour to game.clock.hour

Comments

Sign In or Register to comment.