Help with Upgrade Shop

Hello all,

I am currently on the block breaker game near the end at the moment and was wondering if someone could help me out. For those that have progressed further than I have thus far or that have completed the entirety of the course, is there a part when we learn how to code in a shop feature in the game? I am looking to add in a shop menu where the player can use coins/points to buy different in game skins or costumes for their character. If there is a part or specific lecture that goes into this please let me know. I am trying to implement this feature on a project I am doing in between block breaker and the next game.

I feel comfortable with the UI I would just need some direction on the coding. Something probably with using the in game scoring system that is already there but would need to be stored after dying in the game.

If there is a lecture that does cover this type of stuff but is in a different course I do have three of the courses, Unity, Unity 2.0 and the RPG one.

There’s no specific lecture on this but in Glitch Garden we are introduced to the concept of player prefs and storing user settings outside of the game that will carry over on restart etc. We also go a bit deeper into a UI Menu system.

Using just those I imagine you could build a fairly rudimentary menu system that checks the stored coins/points and if it’s got enough unlocks a skin which would just be an array of textures/sprites on the gameObject that would be set prior via code.

So no it’s not explicitly shown but it shouldn’t be too challenging of a task to work out how to do it after the idea of PlayerPrefs is brought in.

No actually there is no Course inside GameDev.tv that give information about how to make a Shop.

But when u done this Course u should be able to make ur Shop System. I was able to create my Shop System but iam using a whole Cloud System behind that.

When you arrive in the Glitch Garden Game how Martyn said u learn how to Store Informatoins as PlayerPrefs so they wont get lost after you restart Your Game.

And this PlayerPref System is your starting Point.

When you get to the Challenge of Making an Level Manager and Level Unlock and you work out a good Level Unlock System, its nearly the same like a Shop System. Because after i designed my Level Manager i was able to understand how it work and after i found out that i can use the similiar System also for Building a Shop and store Informations.

Doing some Brainstorming about how to Design that:
Save
Choose and Select
Buy
Thats your System:

How to Save Data? you can find out in Glitch Garden Game, you will learn how to do that with PlayerPrefs.
Choose and Select? you can find how this works in a Level Unlock System which is a challenge in the Glitch Garden Game.
How to Buy? Ah nearly the same like Choose and Select but this time u need to decrease Money and Add the Item (maybe a bool) to the Player. Now back to Save.

You can Setup the UI for this Manually or you can Setup it with a Script.
The UI has some natural limitations how you can setup Something like that but it will work for the first.
Later you will Setup the complete UI with a Script to keep Track of Items which the Player already bought so that you can remove the specific Object from the list that he cannot buy it again.

Thank you both i will try my best to implement this and let you know how it goes!

Privacy & Terms