using codes to redeem prizes

digitalzerodigitalzero Member, BASIC Posts: 639

I was thinking about trying to have a code generator to redeem coins for my game is there any way to do this? I would like to give them out to friends so they could get a head start on the game

Comments

  • ookami007ookami007 Member Posts: 581

    First, you need some place to enter the codes.... that means a visible or hidden scene where they can enter alpha or numeric data.

    Once they enter the data, then you must compare it to the codes you have in the program... probably stored in a table.

    Then, it's just a matter of searching the table for the code, and applying the benefit if the code exists.

  • SummationSummation Member, PRO Posts: 476
    edited May 2015

    @ookami007 said:
    First, you need some place to enter the codes.... that means a visible or hidden scene where they can enter alpha or numeric data.

    Once they enter the data, then you must compare it to the codes you have in the program... probably stored in a table.

    Then, it's just a matter of searching the table for the code, and applying the benefit if the code exists.

    Yeah, but if you do it this way then codes can be shared between people and anyone who enters the code can benefit from that.
    It's just a normal "cheat code" as opposed to a unique thing that only friends can do.

    However, if you throw some network behaviors in there and connect to a server that checks to see if the code was used, then that might work.

  • digitalzerodigitalzero Member, BASIC Posts: 639

    So @Summation how would i do that?

Sign In or Register to comment.