Great, thanks. Small suggestion: Use UI.Image component instead of SpriteRenderer (icons), because when scrolling the text disappears, but the sprites remain visible.
I was going to write something about the bad practices but I saw you got a few of those. Its a good start however. Theres a lot to learn and for a lot of beginners, its a good starting point. When you go over the saving system, look into binary formatting with classes instead of player prefs
It's nice to have more experienced devs helping by giving hints like this, a pity you do not have any videos to check in your profile you could teach a whole deal i'm sure :P
Great job, you can make a class or struct that hold information for each button, that will help you to save buttons information later. The using of update function in each button is bad practice. instead of thet the using of the Interfaces of EventSystem such as IPointerDown or IPointerUp is good practice, and that will give you good performance 👍.
I use scratch lol. I need a pc and then I will start coding. Real codeing, not scratch coding (unity, python, etc.) I started coding at 11 and I am 12. I am excited for the future.
I strongly recommend rnd as a 15 years old game developer firstly understand what is objective programing and learn python before you start c# trust me its really useful (btw i am a game dev for 4 years so i know my shit)
Awesome tutorial, I added the Event System library and the option GetComponent().currentSelectedGameObject doesn't appear as an option for me, I know this is a Unity bug, but it's driving me crazy, is there another way to do this without needing to use currentSelectedGameObject ?
Hey it didn't work for me :( I keep getting " Object reference not set to an instance of an object" error about the ShopManager in the ButtonInfo script. I'm also using a different value than coins (with prefs) & I can't drag mine into 'Price Txt' on the ButtonInfo script on Item1.. idk if this is related? Please answer i could really use ur help, it's for a school project
I really want a tutorial series about multiplayer games in unity plssssss×♾ Since brackeys not making videos anymore i only trust you plsssssss×♾♾♾♾♾♾♾♾♾
I think it would make sense to post the code to Github instead of making ppl download the code through google drive or something like that. It'll also help with keeping track of progress of the project!
i was gonna say ma man..but i remember you are a girl soo....you are the best indie developer girl....actually you are the only one i know🤔..its weird there is no too much girl developer
nicely explained. but your script doesnt work. and why you zip your whole project.. you should have zipped only the script and check the script has no error before zipping
*Hi, much luv for the tutorials! :)* How to make it possible to buy a doubling of life in the shop? let's say usually in the game there are 3 lives, I want to be able to buy 6 in the shop (for just one session of the game). I can't find any tutorials on that topic. :(
That was a great explanation! Thank you! How can I save the number of coins that are left for other scenes? (As my item shop is having a different kind of items in different scenes)
The ShopManager shouldn't have to care about the UI, the UI has to show the info provided by ShopManager. Check this video ruclips.net/video/vDrYDAMdpuc/видео.html
Interesting channel. I am facing now need of Item shop in the game that my daughter is making (I am doing scripts and music), and found your channel like this. I think I will have a little bit different approach. Since I have already my inventory system, currency and save system I think I need to build it on top of what we already have. So I was thinking about making script ShoppingItem, and then this would have reference field for prefab GameObject, because I have all the info I need on a ScriptableObject attached to the prefab, so I could read it from there. Then my ShopManager would only hold the reference to an array of ShoppingItem items, and to my currency.
@@ultrahigh5961 okay that means where you're removing coins for an index that doesn't exist. so like your length may be 3 and your trying to remove from array spot 3,4,5 6 ect one that's not in bounds. so just check the length of your array to double check, that its long enouogh and not under 0.
I don't want to sound mean - but there are a lot of things one shouldn't do. I can understand that you didn't choose scriptableobjects for items in order to keep the tutorial short - but a multidim-array with magic-numbers is really a no-go. At least having a proper struct and use that in a list/array would've improved the code a lot. If you want to store it in a compact way later on in playerprefs - ok. But you can have mappers to transform data. There is really no reason why one should go with such errorprone data-structure. Next problem is that you don't cache your objects. Why fetching the EventSystem every time? Why grabbing it in a such complicated way? "EventSystem.current" would replace GameObject.FindGameObjectWithTag("Event").GetComponent(). Also it doesn't need any tag (which is also errorprone). Then it isn't clear why you store a ref to the gameobject and not to ButtonInfo. But in overall ShopManager anyway shouldn't know about buttons. Just think of the Single-Responsibility-Principle. The ShopManager should decrease the coins and increase the amount. Thats it. And it could be easily achieved if Buy just takes the necessary parameters. Those could be provided by the ButtonInfo-class. I don't understand why you take the shopManager as GameObject and not as ShopManagerScript. The call to GetComponent is just a waste of resources. And this ButtonInfo could trigger the buy-Methode on the shopmanager. The values then also don't have to be updated on every frame. You could do that on Start/OnEnable and after each button click. Also I want to point out: this is meant as constructive feedback and I don't want to offend you with that.
Honestly dude you so toxic. I see you commenting every few hours. Look shes clearly trying to have fun while making videos. Not everything you do is going to be perfect and be the best outcome. But its props to her that she gave it a go. And instead of commenting the same thing over and over again on a youtube channel go do something fun for yourself. Instead of making someone feel worse about themselves. 👍
Finally now I can sell drugs and guns
😂
😂😂
lol
Yep
I'll take your entire stock
No one:
Me in the description: Bippity Boppity your thing is now my property
@SwaneZ Ha yeah well I Bippity Boppityed his line now its my property
dani
Finally a solution for my underground milk cartel. Very cool!
(And my coffee game of course. I’m def not running a coffee cartel as well 👀)
😂
never been this early in my life ,this says something
This stuff is GENIUS! Thank you for this tutorial! this is exactly what I needed and I learned alot from your video
Thank you for making one of the only few unity shop video that is understandable.
thank you woman from 3 years ago it really helped, the only working shop tutorial that i found
Great, thanks. Small suggestion: Use UI.Image component instead of SpriteRenderer (icons), because when scrolling the text disappears, but the sprites remain visible.
I was going to write something about the bad practices but I saw you got a few of those. Its a good start however. Theres a lot to learn and for a lot of beginners, its a good starting point.
When you go over the saving system, look into binary formatting with classes instead of player prefs
It's nice to have more experienced devs helping by giving hints like this, a pity you do not have any videos to check in your profile you could teach a whole deal i'm sure :P
@@luckyknot i have another account but Im also transitioning so Im avoiding my dead name a bit.
@@sylvsyntax i understand, i'm very interested in following you, add me somwhere! :P
Binary formatting should never be used, it is insecure and not recommended by microsoft to be used.
Great job, you can make a class or struct that hold information for each button, that will help you to save buttons information later.
The using of update function in each button is bad practice.
instead of thet the using of the Interfaces of EventSystem such as IPointerDown or IPointerUp is good practice, and that will give you good performance 👍.
Been looking for a tutorial like this for a while. Nice!
No one:
Zyger: PirceTxt
Finally I can sell the secret 100% white milk powder
How to make shop
Simple: Potion go burr
Long: watch the video
@Mr Maniac you need to edit your comment. It doesn’t apply anymore
Yey. Finally, my shopping system works
I use scratch lol. I need a pc and then I will start coding. Real codeing, not scratch coding (unity, python, etc.) I started coding at 11 and I am 12. I am excited for the future.
same here xD
I strongly recommend rnd as a 15 years old game developer firstly understand what is objective programing and learn python before you start c# trust me its really useful (btw i am a game dev for 4 years so i know my shit)
@@viliusraguotis1618 I have coded in html. I know python but I can’t code in python.
@@viliusraguotis1618 I am exited to see what awaits. If you have a game then I would be eager to play it.
@Mr Maniac just saying the younger you are the easier it is. Code now not later. I am 12 so I need to start
This saved me from despair XD
Thank you very much, great job
wow Zyger I am excited that you have started to make tutorials!
Awesome tutorial, I added the Event System library and the option GetComponent().currentSelectedGameObject doesn't appear as an option for me, I know this is a Unity bug, but it's driving me crazy, is there another way to do this without needing to use currentSelectedGameObject ?
Had to wait a long time for ur new video.This tutorial was worth the wait. Gr8 job😉👍
Thanks for tutorial. In time when I needed.
Gotta get that tutorial bread
Me when Zyger becomes serious : Wait a minute ? Who are you ?
Perfect. Thanks ! The Only one tuto of it I've found in youtube !
Hey it didn't work for me :( I keep getting " Object reference not set to an instance of an object" error about the ShopManager in the ButtonInfo script.
I'm also using a different value than coins (with prefs) & I can't drag mine into 'Price Txt' on the ButtonInfo script on Item1.. idk if this is related? Please answer i could really use ur help, it's for a school project
Yesssss!!!
MAKE MORE TUTORIALS LIKE THIS :))))
I really want a tutorial series about multiplayer games in unity plssssss×♾
Since brackeys not making videos anymore i only trust you plsssssss×♾♾♾♾♾♾♾♾♾
Why you put on 4:40 in arguments of the array two numbers 5 ? I would like to know purpose behind it, thanks in advance
Honestly not sure now looking back. It was unevessary and didn't change anything so I guess you can change the number to however many items you want.
I think it would make sense to post the code to Github instead of making ppl download the code through google drive or something like that. It'll also help with keeping track of progress of the project!
That's very true thank you I'll try update is asap
I love this, just can't wrap my head around how to also sell items from my inventory and display my inventory in the shop UI. Any ideas?
i was gonna say ma man..but i remember you are a girl soo....you are the best indie developer girl....actually you are the only one i know🤔..its weird there is no too much girl developer
dani is a girl also
awesome tutorial! here's hoping for the save tutorial as well. Keep up the amazing work!
Your visual studio font colour combination is sickkk . Is there anyway i could get the same settings? Amazing video btw
It's called one dark pro
Fantastic tutorial, really great and even provided source code, 10/10 subbed
you should try to make Among Us in Core.if you like idea pls like so Zyger sees it.
Hi. Thanks for your great tutorial.
How can we save it?
When I exit from my shop changes disappear.
Very informative video keep it up , but i keep getting an " Object reference not set to an instance of an object" error do u maybe know why?
Same lol have u ever fixed this?
Please make a saving the items purchased tutorial...
Assets\ButtonInfo.cs(16,32): error CS0021: Cannot apply indexing with [] to an expression of type 'GameObject'
gameObject*
Please tell me how to save it as playerprefs
I really need this too
Why do you use capital letters for variables? Is your choice? I'm asking because most of developer says you can use capital letters for methods.
Amazing tutorial! Thank you
I did all the same but my numbers does not come only Price text and quantity text comes
Same release day as amazon prime day. COINCIDENCE?!?
i though i am here to watch unity tutorial instead of learning rapping haha
Thanks for this! Super helpful!
i was unable to download file
Also thanks
I'm going to probs use this information
it does not work how do u get ButtonInfo form event system if the script is not in the event system??
ok ya it works i was just did not tag the event system lol
Can you do a video about how to save data?
how to save gameobject ?
nicely explained. but your script doesnt work. and why you zip your whole project.. you should have zipped only the script and check the script has no error before zipping
Make a same video on "How to make a Buying item or land in idle game in unity 3d".
for example game name: Outlets Rush
Awesome vid, Wheres the saving tutorial 😂😂??
Thanks for helping me
Very useful thanks
Great video
thank you !
*Hi, much luv for the tutorials! :)*
How to make it possible to buy a doubling of life in the shop?
let's say usually in the game there are 3 lives, I want to be able to buy 6 in the shop (for just one session of the game). I can't find any tutorials on that topic. :(
That was a great explanation! Thank you!
How can I save the number of coins that are left for other scenes? (As my item shop is having a different kind of items in different scenes)
User player prefs. you can save values and they get saved in between scenes and even after closing the application/game
@@ZygerGFX Thank you very much!
any way of implementing my custom score one for this code
What do you mean ? Can you explain ?
Thank you :)
can u make a video for the save system
My man is talking with a speed of 1.25. drop it to .75 to equal it out lol.
Download link is broken.
Can you tell me how to fix, I cant add the buy funtion on the button.
any one plss
@@marvicbautista7080 Same. Did you ever figure it out? :P
For some reason it says that there are 4 comments when actually there are like 30 xD
thank you
amazing
thank you so much
Please make the second part
The ShopManager shouldn't have to care about the UI, the UI has to show the info provided by ShopManager. Check this video ruclips.net/video/vDrYDAMdpuc/видео.html
Could you make a level select in unity tutorial plz????
save and load system plez?
Interesting channel. I am facing now need of Item shop in the game that my daughter is making (I am doing scripts and music), and found your channel like this. I think I will have a little bit different approach. Since I have already my inventory system, currency and save system I think I need to build it on top of what we already have. So I was thinking about making script ShoppingItem, and then this would have reference field for prefab GameObject, because I have all the info I need on a ScriptableObject attached to the prefab, so I could read it from there. Then my ShopManager would only hold the reference to an array of ShoppingItem items, and to my currency.
Please can you make part 2
your username sounds like a racial slur for aliens, great tutorial tho!
very goooddddddddd
MORE TUTS
No Source. No Watch!
Nice
Thank you
fem-dani
not first
hi
gg
hey! can u see your email? i have an issue
use [SerializeField] pls
queria entender oque fala
didn't work :/
what exactly didn't work ? are you getting errors or ? also did you debug your code to see whats not working ?
@@ZygerGFX I got an Out-of-Bounds error on a line where coins get substracted ("coins -= ...").
@@ultrahigh5961 okay that means where you're removing coins for an index that doesn't exist. so like your length may be 3 and your trying to remove from array spot 3,4,5 6 ect one that's not in bounds. so just check the length of your array to double check, that its long enouogh and not under 0.
5.
please speak shop equal cs, and by arms gamer
牛逼
.
first
im first actually xD
Che che
Before you or it says that
Ez
I don't want to sound mean - but there are a lot of things one shouldn't do. I can understand that you didn't choose scriptableobjects for items in order to keep the tutorial short - but a multidim-array with magic-numbers is really a no-go. At least having a proper struct and use that in a list/array would've improved the code a lot. If you want to store it in a compact way later on in playerprefs - ok. But you can have mappers to transform data. There is really no reason why one should go with such errorprone data-structure. Next problem is that you don't cache your objects. Why fetching the EventSystem every time? Why grabbing it in a such complicated way? "EventSystem.current" would replace GameObject.FindGameObjectWithTag("Event").GetComponent(). Also it doesn't need any tag (which is also errorprone). Then it isn't clear why you store a ref to the gameobject and not to ButtonInfo. But in overall ShopManager anyway shouldn't know about buttons. Just think of the Single-Responsibility-Principle. The ShopManager should decrease the coins and increase the amount. Thats it. And it could be easily achieved if Buy just takes the necessary parameters. Those could be provided by the ButtonInfo-class. I don't understand why you take the shopManager as GameObject and not as ShopManagerScript. The call to GetComponent is just a waste of resources. And this ButtonInfo could trigger the buy-Methode on the shopmanager. The values then also don't have to be updated on every frame. You could do that on Start/OnEnable and after each button click. Also I want to point out: this is meant as constructive feedback and I don't want to offend you with that.
U know your shit,nice I guess?
Came here to say this, when trying something out, this might be okay, but it shows bad practices over and over.
@@mudokin wudym?
Oh Jesus it’s the girl who can’t even make a game look better than the original
Honestly dude you so toxic. I see you commenting every few hours. Look shes clearly trying to have fun while making videos. Not everything you do is going to be perfect and be the best outcome. But its props to her that she gave it a go. And instead of commenting the same thing over and over again on a youtube channel go do something fun for yourself. Instead of making someone feel worse about themselves. 👍