Math Question
osucowboy18
Member Posts: 1,307
Hey everyone,
So I'm just about finished with version 2.0 of iJetSki, but want to include one last feature before I submit to Apple. Every 10 games the user plays, I want a message box to pop up asking the user if they want to rate my app. Can someone please provide a mathematical way of doing this besides if game.TimesPlayed = 10/20/etc, then show message box. Thanks.
- Alex
So I'm just about finished with version 2.0 of iJetSki, but want to include one last feature before I submit to Apple. Every 10 games the user plays, I want a message box to pop up asking the user if they want to rate my app. Can someone please provide a mathematical way of doing this besides if game.TimesPlayed = 10/20/etc, then show message box. Thanks.
- Alex
Comments
- Alex
when you increment the game.TimesPlayed make it
(games.TimesPlayed%10)+1
Have I been doing this wrong all along?
CM's method would be used to check for 1 whenever the game has been played 10 times
you could really check for any number between 0 and 9 for either method, the difference is when it first returns true... every other time after that will be an increment of 10 from the first
- Alex