Redeemable codes in a game

Hi, I've got a score system in my game that allows you to upgrade weapons but wanted to add a system that allows user to redeem codes to get coins.

Basically I want the codes to be one-time redeemable so users can't exploit it. Does anyone know how to add this ?
- Thanks

Comments

  • famekraftsfamekrafts Member, BASIC Posts: 834
    edited November 2012
    I am thinking similar for my game. What. Thought was to get few free promo codes from apple and give them free in another app, thus promoting both. Even I want it to be only redeemed once. Thought to create a text attribute, add the code in it. Or maybe use table. Create a Boolean to switch true when the code is to be shown. Once the scene changes, make it false and save the Boolean so every time game loads, it loads the saved Boolean so the code is never showed again. For your game, what you can do is setup a timer for 24 hrs, if the timer exceeds that change Boolean to false and if it's false the purchase won't happen button won't be clicked etc. 24 hrs is just an example for making it work for only a day, you can setup a simple one like once it's purchased make it false.
Sign In or Register to comment.