Hey guys, im new in Unity, but i have knowledge in programming.
I start to make a 2d game, sure im in the beginning of it, but we can talk about how to create the cash shop.
The simple thing i want do is a button where the player go to shop(providing this in the game now), and go have two types of item, the in-game cash and the real money cash, where go have different itens for each type to buy.
So if someone can start help me talking about the code, explaining how it work and how i can add it to the game.
If the post is in the wrong place please adm change for me
You should really focus on making the actual game first.
I don’t mean to offend or assume, but whenever a new user comes in and the first thing they ask is how to implement microtransactions, it really just sets off the “I’m only in it for the money” alarm bells.
asked this because i want start study how i go make this and implement this in the game
what i go need or dont and what go be the good way to make it usefull
As Vryken said focus on making your game first.
As for the code for it, assuming you mean In-App Purchases: Unity - Manual: Unity IAP read this thoroughly and start coding. IMO asking for code is bad practice, asking for sample code is another thing. But honestly (no offense) if as you said you know how to write code, you should be fine with either the docs or tutorials.
Figure out what package, asset, or SDK you’re going to use to do real money purchases for your chosen platform. Maybe that is the UnityIAP, maybe it is Steam, maybe you’re going to roll your own website with PayPal, no idea what you’re planning. Then find tutorials or examples specific to what you have chosen. If it is UnityIAP for example, there is a forum specific to that here you should be looking at.
Otherwise all anyone can tell you is you’ll have some variable with the current value of money in the game, which gets set through some kind of magic, which you subtract from as the player uses it.