Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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,299
    Schneider21 likes this.