Unity SHOP SYSTEM Tutorial

  Рет қаралды 29,094

Pandemonium

Pandemonium

Күн бұрын

In this tutorial we will expand our car selection project by adding a simple shop to it.
➤Starting Project:
github.com/nickbota/Unity-Sav...
➤Buttons & Font:
drive.google.com/file/d/1rWdP...
➤Complete Project:
github.com/nickbota/Unity-Sho...
Support Pandemonium on Patreon:
➤ / pandemonium_games
Join the Discord to get help and suggest new videos and follow me on social to see the latest updates and other shenanigans.
➤ Discord : / discord
➤ Instagram: / pandemonium_games
➤ Facebook: / pandemoniumgm​
➤ Twitter: / pandemoniumnick​
➤ Itch: nickbota.itch.io/​
#pandemoniumgames​ #unityshop​ #unitytutorial​
Tags: unity shop,unity shop system,unity shop tutorial,unity easy shop,unity unlock system,unity car game,unity car shop,unity shop ui,unity skin shop,unity shop menu,unity character shop,unity shop system tutorial,unity shopping,unity shopping system,unity3d,unity car game tutorial,unity racing,unity racing game,unity racing game tutorial,unity car,unity currency system,unity currency,unity money,unity money system,unity tutorial
0:00​ Intro
0:09​ Setup & Explanation
1:04​ Adding Currency
2:55​ Car Locked/Unlocked
3:55​ Play/Buy Buttons
5:54​ Buying Cars
7:39​ Fixing Bugs
8:03​ Final Result & Outro

Пікірлер: 107
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Hey everyone, thanks for watching. We already have 3 videos on this project. Let me know if you want me to make this into a full racing game tutorial.
@blacklight8932
@blacklight8932 3 жыл бұрын
Yes, why not
@teho2344
@teho2344 3 жыл бұрын
Yess of course
@StigDesign
@StigDesign 3 жыл бұрын
Maby add Buying Upgrades/ Change Visual on the car that is showing when starting in next scene/Race :D like changing rims, or Change color on a multimaterial car :)
@red2go56
@red2go56 3 жыл бұрын
can u pls make a tutorial for dead scene?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@red2go56 death of the car? 🤔
@jaja7830
@jaja7830 16 сағат бұрын
Clean code, safe, explained well, provided scripts. Thank you!
2 жыл бұрын
I didnt exactly did the same as you wrote, but you gave me some ideas and I created a perfect unlock system, thank you
@erdemakar
@erdemakar 3 жыл бұрын
I was looking for this 3:33 thanks for the helpful content!
@vi700
@vi700 8 ай бұрын
Thank you for your helping video.
@no_cap2499
@no_cap2499 2 жыл бұрын
great work mate
@FrancybelloCoding
@FrancybelloCoding 3 жыл бұрын
awesome! very helpful video!
@dorianrecht1202
@dorianrecht1202 2 жыл бұрын
Hi ! I love your tutos and I was wondering how we can include a tuning system to this shop system thanks
@seremix774
@seremix774 Жыл бұрын
Nice tutorial
@egeaydn1531
@egeaydn1531 Жыл бұрын
awesome!
@MH_Create
@MH_Create 3 жыл бұрын
Thank you very much, your tutorials are excellent. Please teach us how to map the car we bought and play
@MH_Create
@MH_Create 3 жыл бұрын
Please!
@KineticProduction
@KineticProduction 8 ай бұрын
How do I save my car information like torque acceleration and all main car transform that I'm using in car follow camera and other things
@Testtestnotest
@Testtestnotest Жыл бұрын
Is there a way to display another object that represents the object that you are going to buy rather than the object itself? I have been going at it for a week now and can' t really find a lead so any help would be really apreciated!
@KBforJesusChrist
@KBforJesusChrist Жыл бұрын
How do you make bought item go to collection instead of going direct in a game i need it to go to collection because what if i have accessories and player skins and weapons instead how will that work
@StigDesign
@StigDesign 3 жыл бұрын
This is really cool :D Love it :D
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thanks Stig, this series started thanks to you 😁
@StigDesign
@StigDesign 3 жыл бұрын
@@PandemoniumGameDev :D oh hehe thats nice :) Looking forward to your next tutorials you make them really good and detailed with explanation :D
@StigDesign
@StigDesign 3 жыл бұрын
@@PandemoniumGameDev i have been thinking on Actually adding a unlock system in my game, sort of XP or Points that unlocks the bonus cars and maby tracks, like the track i posted update on my chanal :D your Video helps me with how i can approach it alot better :D
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@StigDesign you can do it in the same way as here, just introduce variables for XP and other stuff
@StigDesign
@StigDesign 3 жыл бұрын
@@PandemoniumGameDev Ah Nice, yes i was thinking that its similar to this :D
@bohreffect
@bohreffect 6 ай бұрын
I have a problem about gamestart.While I check cars and start game i can start with new car without buy.I mean generally i starting with last car that i look from shopmanager.How can i fix it
@montybear_8270
@montybear_8270 Жыл бұрын
Hi how does the person get to play the game after clicking on the button "play"?
@divyanshloshali1371
@divyanshloshali1371 2 жыл бұрын
thank you lot i wasted around my 8 hour for this thank for your resolve 👍👍👍👍👍👍👍👍👍👍👍👍∞
@TopDawg4
@TopDawg4 2 жыл бұрын
Hello 👋 can you tell me if I want to delete the save progress of all vehicles unlocked how do you do so?
@rares.developer
@rares.developer 10 ай бұрын
hi, I have a problem, I did everything you did and when I press the play button, the car does not load in the scene. Maybe I did something wrong, please help me, but otherwise everything works. Thank you
@jw-ef2gx
@jw-ef2gx 3 жыл бұрын
It's very interesting. I wonder if you could make a tutorial about script switching cars in the shop :)
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Sure, it's already done check it out here: kzbin.info/www/bejne/aZDbeahjf6ieopY
@jw-ef2gx
@jw-ef2gx 3 жыл бұрын
@@PandemoniumGameDev Thankyou :D
@daniionas2888
@daniionas2888 Жыл бұрын
Can you make atutorial how to add items to cars and player can buy them, by examples Spoilers?
@cothingamer582
@cothingamer582 3 жыл бұрын
You can do a tutorial of how to change cars and then play multiplayer, I respect you, please do it !!!
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
We'll have to change quite a few things for that but worth a try
@cothingamer582
@cothingamer582 3 жыл бұрын
@@PandemoniumGameDev Thanks, make this video asap
@imperator0183
@imperator0183 2 жыл бұрын
hi bro , how are you? bro i want make that players collect coins with an ad view. how can i make it? please tutorial 🙏
@MH_Create
@MH_Create 3 жыл бұрын
How my dear how to make a bus system in unity like bus simulator game... Help please
@joysonst
@joysonst 2 жыл бұрын
Hey, thanks for the tutorial. But I got a problem, that each time you add a new car for the next update for your game, we will have to do a clear cache or we have to write the new data on top of the previous, or it will clear all your previous purchases too. is there a solution for it?
@kelvinhuurman4247
@kelvinhuurman4247 Жыл бұрын
did u fix it?
@joysonst
@joysonst Жыл бұрын
@@kelvinhuurman4247 Nope. I haven't touched the project just because of this issue. In fact you shouldn't use scriptable objects to save these values. Try some other ways to save the data.
@MrBear69
@MrBear69 2 жыл бұрын
hey dude, I've been working on implementing your code to my game, but I've got a small issue, I changed the GameObjects to interactables, and as result sometimes due to the update function enabling them back if I got enough money, I can buy vehicles again, even though I already bought them, is there any way I can fix this?
@Oleg-cp1gv
@Oleg-cp1gv 2 жыл бұрын
Same problem
@ojodumeh3063
@ojodumeh3063 2 жыл бұрын
Thank you so much for your tutorial. can you help me i have some prablem when i open scen game first the car not show then "Object reference not set to an instance of an object". so why this happen?
@ojodumeh3063
@ojodumeh3063 2 жыл бұрын
@Pandemonium
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Did you assign all the variables in the editor?
@user-et7de8in7k
@user-et7de8in7k 2 ай бұрын
bro i got error that out of boundry of index error anyone help me please
@xdxdxd6599
@xdxdxd6599 2 жыл бұрын
Hi! The tutorial was very helpful! But there was a problem, when you dont have enough money your buy button should turn transparent but mine just disppears. Any solution?
@xdxdxd6599
@xdxdxd6599 2 жыл бұрын
Ayo nevermind I got it fixed!:D
@MayKayy
@MayKayy 2 ай бұрын
Great tutorial but there is a big mistake. If I exit the game while a car that I haven't purchased is on the screen, it gets purchased. To fix this, edit the ChangeCar() method as follows: public void ChangeCar(int _change) { currentCar += _change; if (currentCar > transform.childCount - 1) { currentCar = 0; } else if (currentCar < 0) { currentCar = transform.childCount - 1; } // Save it if it's unlocked if (SaveManager.instance.carsUnlocked[currentCar]) { SaveManager.instance.currentCar = currentCar; SaveManager.instance.Save(); } SelectCar(currentCar); }
@dkordy
@dkordy Жыл бұрын
Excellent tutorial, like the previous one. Hopefully I can figure out how to incorporate it into my game. Instead of cars, I made to buy characters. I hope that I will manage to collect money during the game by collecting coins and then if I have enough I can buy in the selection menu a new character? And I hope that I will be able to figure out how to delete the saved data, because now they are saved and I have no idea how to delete them! i need some general reset button!?
@dkordy
@dkordy Жыл бұрын
You have to, please help me with how to reset the saved data?
@dkordy
@dkordy Жыл бұрын
sooo...how to reset the saved data?
@GhazyAzhar
@GhazyAzhar Жыл бұрын
have you found the answer? I need it
@user-gg1wk1fx4b
@user-gg1wk1fx4b 7 ай бұрын
You can try this option, just rewrite the variables to suit you public void ClearData() { BinaryFormatter binaryFormatter = new BinaryFormatter(); FileStream file = File.Create(Application.persistentDataPath + "/playerInfo.dat"); PlayerData data = new PlayerData(); currentCatSkin = 0; money = 0; catsUnlocked = new bool[4] { true, false, false, false }; data.currentCatSkin = 0; data.money = 0; data.catsUnlocked = new bool[4] { true, false, false, false }; binaryFormatter.Serialize(file, data); file.Close(); }
@mepaul7016
@mepaul7016 2 жыл бұрын
Hi, what Save and Load method you used for this game ?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
It's basically Binary serialization, you can check out this video for more info: kzbin.info/www/bejne/i4uamGt7rqxpgJI&ab_channel=PandemoniumGames
@bahadrto
@bahadrto 2 жыл бұрын
It has a problem .It is good you have a car saved last one you looked and when you open again it shows your last looked car but when you looked car you dont unlocked and when you close the game and open again it shows it you dont even have the car bought and its a problem isnt it needs to bee show only unlocked cars ?(sorry for my bad english)
@MayKayy
@MayKayy 2 ай бұрын
Aynen ya nasıl düzeltebilirim bunu?
@AstroMarioYT
@AstroMarioYT 3 жыл бұрын
Hi, could you tell me how to make that when you finish a level your money increases, Thanks!
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
That depends on your code, find the script that you use to determine when you win the level and add: SaveManager.instance.money += 100; (or however much you want) and SaveManager.instance.Save(); to save it.
@AstroMarioYT
@AstroMarioYT 3 жыл бұрын
@@PandemoniumGameDev Thanks, you're the best!
@suryaprakash9083
@suryaprakash9083 2 жыл бұрын
How to add currency with Coins
@thesensationgaming4482
@thesensationgaming4482 2 жыл бұрын
Hey there is a problem that the save manager should should have 32 car size but when I play it works with only 6
@thesensationgaming4482
@thesensationgaming4482 2 жыл бұрын
Can you give my answer fast because I need it fast.
@user-ux8hs8ou2n
@user-ux8hs8ou2n Жыл бұрын
hi, did you find a solution to the problem?
@user-ju7fo8uw7x
@user-ju7fo8uw7x 10 ай бұрын
make the array of 32 size and also the true false
@AstroMarioYT
@AstroMarioYT 3 жыл бұрын
Hi, how do I have to add the text if it's a TextMeshPro?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
you mean the price and total counter? Yeah you have to, but you need to change the Text variables to TextMeshPro
@AstroMarioYT
@AstroMarioYT 3 жыл бұрын
@@PandemoniumGameDev ​ Sorry, I meant how to make the "Price Text" become compatible for the text mesh pro because now it only lets me put normal texts (The price text that I mean is your Car Price - 5:03)
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@AstroMarioYT yeah, so create a text mesh pro object, change the variable from Text to TextMeshPro in the script and assign the variable in the editor. That's it.
@mulagraphics
@mulagraphics 2 жыл бұрын
How can we use Scriptable objects with the Shop System? please make video...thanks
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Already did, here: kzbin.info/www/bejne/an2tYoVnpseFZrs&ab_channel=Pandemonium
@suryaprakash9083
@suryaprakash9083 2 жыл бұрын
How to increase money with Coins please tell me
@bercikozma8913
@bercikozma8913 2 жыл бұрын
Hello, this save method is better than using PlayerPrefs?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
PlayerPrefs is easier to implement, but serialization gives you a lot more options. You can save more data types and extend it.
@bercikozma8913
@bercikozma8913 2 жыл бұрын
@@PandemoniumGameDev Thank you, and it is true that PlayerPrefs are not safe, or this method is safer?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
@@bercikozma8913 Both are not safe to be honest. Cheaters can change the values in both cases, Binary serialization can even be more dangerous because there are people that can put dangerous malware in your save files. But that can happen only if you try to download save files from the web(which is not advisable in the first place). At the end of the day all save systems have flaws, the most secure case is when you're saving/loading data from a server.
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
@@bercikozma8913 If you're working on a small game use PlayerPrefs. If it's a single player game but with a save system that's a bit more complex go for binary or JSON(doesn't matter if the players cheat it's single-player after all). If you're working on an online game you'll need to look into server-side saving/loading. But I'm not an expert in this area so take what I say with a grain of salt.
@bercikozma8913
@bercikozma8913 2 жыл бұрын
@@PandemoniumGameDev Thank you so much for the answers, and btw your tutorials are very great, keep going!
@musicland5786
@musicland5786 2 жыл бұрын
It's good but how the player get money
@technologyfever2960
@technologyfever2960 2 жыл бұрын
This unlocked vahicle can also unlock after restart the game on Android
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
If you're asking if the unlocked vehicles will be saved on restart then yes they will be on Android, PC, iOS etc.
@ggre55
@ggre55 2 жыл бұрын
Can u make tycoon game tutorial
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Will try in the future, need to finish the current series first.
@arniguarded3697
@arniguarded3697 2 жыл бұрын
Please make a tutorial on how to collect money
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Whenever you want to collect money just use SaveManager.instance += yourAmount. If you have coins in your game for example check when the player collides with the coins and use that line to add how much money you want.
@jesuslover8541
@jesuslover8541 3 жыл бұрын
how to delet files that have been saved by save manager
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Just find the save file and delete it. You can also use File.Delete("path to file") to do it from code
@jesuslover8541
@jesuslover8541 3 жыл бұрын
@@PandemoniumGameDev thank you its work is this system work for mobile
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@jesuslover8541 yes
@MegaXDBrasil
@MegaXDBrasil Жыл бұрын
You did not explain how to make save file
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Right in the beginning of the video I mentioned that this is a continuation of the save tutorial and you also have a link to that video there. kzbin.info/www/bejne/i4uamGt7rqxpgJI
@itsmeks1
@itsmeks1 Жыл бұрын
@@PandemoniumGameDev Hey When I Add New Car IT Gives Me A Error Please Help ME It Says IndexOutOfRangeException: Index was outside the bounds of the array. CarSelection.UpdateUI () (at Assets/Scripts/CarSelection.cs:41) CarSelection.SelectCar (System.Int32 _index) (at Assets/Scripts/CarSelection.cs:36) CarSelection.Start () (at Assets/Scripts/CarSelection.cs:28)
@Leon-zc4ft
@Leon-zc4ft Жыл бұрын
Hi,.Please,sa how to make the MoneyCounter,with TextMeshPro.Pleaaaaase!)
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
It's basically the same thing except instead of text you use TextMeshProUGUI
@VinnyKoder
@VinnyKoder Жыл бұрын
hello help me i am from India
@MegaXDBrasil
@MegaXDBrasil Жыл бұрын
Bad very fast to learn
LEVEL/CAR/WEAPON Selection with Unity Scriptable Objects
28:49
Pandemonium
Рет қаралды 22 М.
Unity Character/Skin Selection Menu - Easy Unity Tutorial
13:31
Let's all try it too‼︎#magic#tenge
00:26
Nonomen ノノメン
Рет қаралды 53 МЛН
The World's Fastest Cleaners
00:35
MrBeast
Рет қаралды 160 МЛН
Simple Shop System in Unity -  (Part 1)
20:16
GDTitans
Рет қаралды 34 М.
Simple Shop in Unity (Buy Items, Weapons, Armor)
19:00
Code Monkey
Рет қаралды 154 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 672 М.
Mastering 3D Modeling: Top 5 Topology Mistakes to Avoid
9:29
On Mars 3D
Рет қаралды 161 М.
How to make a simple Shop in Unity
14:16
Zyger
Рет қаралды 59 М.
Simple Battle System in Unity (Spawn Enemy Waves, Trigger)
24:03
Code Monkey
Рет қаралды 47 М.
Shop Tutorial Unity - [2021]
12:48
Flarvain
Рет қаралды 37 М.
How to make an Audio System in Unity | Unity + FMOD Tutorial
49:37
Shaped by Rain Studios
Рет қаралды 44 М.
Vamos chegar lá sim ✅ ou não ❌???
0:33
Spider Slack
Рет қаралды 3,2 МЛН
ПОМОГИ ХЕРОБРИНУ ЧЕЛЛЕНДЖ #Shorts #Глент
0:39
глупый парень и маньяк!  @cooldadru
0:50
Holy Baam
Рет қаралды 2,7 МЛН
ЛУЧШАЯ ПАРА ДЛЯ ДУО ШД
0:41
Янер
Рет қаралды 2,4 МЛН
BRONZE TO GRANDMASTER SKILL IN REAL lIFE
0:17
FRN PLAYER 444
Рет қаралды 125 МЛН