Search Unity

In-app Currency

Discussion in 'Getting Started' started by KBurkus, Feb 10, 2015.

  1. KBurkus

    KBurkus

    Joined:
    Feb 1, 2015
    Posts:
    12
    How can I set up something like a shop where a player can buy "extras"
    I don't want for them to have to use real money to pay, but rather have them earn coins inside of the game.
     
  2. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,512
    It's a pretty generic question, so here's a pretty generic answer.

    Your game controller (a high-level object that stays persistent between scenes) can have a currency variable that gets added to whenever the player gains coins. When interfacing with your store UI, check against and deduct from that variable for purchases.

    Not sure how much more detail to go into without knowing what exactly you're having issues with and how much you have already.
     
  3. KBurkus

    KBurkus

    Joined:
    Feb 1, 2015
    Posts:
    12
    I
    I don't have anything right now.
    So how can I go about creating that?
     
  4. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,512
    From this and your other posts, it sound like you don't have much experience with Unity in general. Go through the tutorials at http://unity3d.com/learn and start with the basics before you worry about an in-game store. Start small and work your way up, but keep your game idea in mind while you learn and think how what you're doing can be applied to what you WANT to do.
     
    Ostwind likes this.
  5. Baroni

    Baroni

    Joined:
    Aug 20, 2010
    Posts:
    3,264
    Schneider21 likes this.