if anyone used textmeshpro text instead of text, and cant drag and drop like is shown in the video at 24:00 , then just go to the PlantItem script, and change the classes that are Text, to TextMeshProUGUI example- in the vid its public Text nameTxt; just make them public TextMeshProUGUI nameTxt, and so on
@@SilverlyBee I solved it. I used Input.GetMouseDown in Update instead of MouseDown because I tried to do it in a mobile version. I solved it with Event Trigger, not Update. Thank you.
Does anybody know why after switching from one buy button to another, the green color stays darker? The red does too actually. I thought maybe it was the disabled color option, but I made sure to change them all, and nothing is working
hello, at minute 24:15 i cant drag and drop the scripts in the component we added ( the name and the price specifically ) and i don't know how to fix it please any help ?
I had the same problem, I was using TextMeshPro text and it wouldn't drag+drop in. Tried re-making the text as the regular text (found it under UI>Legacy) and it worked fine, so that might work for you.
Hi! When I get to 46:32, when I click on the buy button on the sunflower or the tomato I get this error: NullReferenceException: Object reference not set to an instance of an object. armManager.SelectPlant (PlantItem newPlant) (at Assets/Scripts/FarmManager.cs:41) PlantItem.BuyPlant () (at Assets/Scripts/PlantItem.cs:30) I checked the scripts several times, doesn't seem to be a spelling mistake. Do you have an idea of where my mistake could be?
Hey, did you do what I did at 46:01? You should do that to the prefab (the PlantItem prefab) and not to the object on the scene (because then it won't update all the prefabs). You should also check that the PlantItems object on scene (for the three plants) are still linked to the prefab (when they are they have this blueish tint) and if they're not you can duplicate them from the original prefab and give them their respective plants or you can just do the same you did for the prefabs to the objects on the scene (the objects right now don't matter that much because on part 4 I show how to load them through script, but you should check if they're working).
thank you for this tutorial, it has been very helpful. I have a problem, when at 15:34 I add the second icon, when I edit the the second icon it changes the background icon too, for example when I resize and I change the image, it also changes the background image. Do you have any suggestions on how to fix this?
Is it changing both of them? Or only the background? You should make sure that you have selected the icon object and that it is a children of the background (if it's the other way around then it could be causing you problems). You could try creating the icon separately and once you have adjusted it to the way you like it you drag the object on the hierarchy to the background (making it a child of the background) and then just correcting its position.
@@SilverlyBee Thank you for the fast reply! I closed Unity for half an hour and now it works fine. I tried to close and reopen it again before wrtiting the first message but it didn't do anything. I don't know why Unity behaves like this sometimes. I will keep in mind your solutions if I am presented again with this problem. Thanks!
@@basiccomponents No problem! I tried to answer to your other comments as well (because they appeared on my notifications) but I haven't been able to, I'm guessing you have deleted them. If you have any questions feel free to ask them! :)
I think this game is better if there is a process of watering and fertilizing. can you add thats part in to the game? overall this tutorial is very good and I like it
Super helpful for a project I'm working on!! No worries if you don't know/not enough info but mine keeps crashing when I deselect an object in game mode. Would you know what could be causing something like that?
Hi, thank you very much for this tutorial. I am only using one plot as I could not get the prefab brushes to work, which is fine because I only want one plot, but I have a problem with it and I'm hoping you can help. When the plant stage reaches its final stage, Corn_3, the sprite is moved down one pixel. Do you know how I can get this sprite to go back up one pixel so it stays in the same position as Corn_0, Corn_1 and Corn_2?
Hey, there's other ways of getting more plots even without the prefab brush (just duplicate the prefab for instance). You could check if the pivot is correctly at the center bottom for all sprites, maybe it's moved by a pixel or so.
Hi there, the farm and chill is just the same as this one, but with a different tileset and this one has a few additional features. The only parts missing from this one is the watering/fertilizer mechanics as well as buying the plot land, would you like to see that?
if anyone used textmeshpro text instead of text, and cant drag and drop like is shown in the video at 24:00 , then just go to the PlantItem script, and change the classes that are Text, to TextMeshProUGUI
example- in the vid its public Text nameTxt; just make them public TextMeshProUGUI nameTxt, and so on
Tnxs for this, took me a while to find it, You must also remember to include "using TMPro;" at the top for this method to work.
this tutorial series is very good. Many Things i learning. (Shop System, Color changes) - Thanks for this!
I'm glad this helped! Thank you for watching!
I first learn unity,and meet a great tutorial.
Glad you liked it!
This is an Awesome video, I love the breaks between each segment. And love your coding. Following!
Thanks! This one is the longest vid I've made and I felt like the breaks would help to keep track of the tutorial, glad you liked it :D
These are really good, very helpful, thanks for your hard work.
Thank you for your comment! :)
@@SilverlyBee I solved it. I used Input.GetMouseDown in Update instead of MouseDown because I tried to do it in a mobile version.
I solved it with Event Trigger, not Update.
Thank you.
@@kennysin4you Nice!
Does anybody know why after switching from one buy button to another, the green color stays darker? The red does too actually. I thought maybe it was the disabled color option, but I made sure to change them all, and nothing is working
How come videos made by women are 100% more educational. Amazing to see you videos.
Thanks! Glad you liked it
hello, at minute 24:15 i cant drag and drop the scripts in the component we added ( the name and the price specifically ) and i don't know how to fix it please any help ?
I had the same problem, I was using TextMeshPro text and it wouldn't drag+drop in. Tried re-making the text as the regular text (found it under UI>Legacy) and it worked fine, so that might work for you.
@@themersues5345 thanks a lot yeah i fixed it back then it was because the textmeshpro i just changed a little in the code and it was done
Hi! When I get to 46:32, when I click on the buy button on the sunflower or the tomato I get this error:
NullReferenceException: Object reference not set to an instance of an object.
armManager.SelectPlant (PlantItem newPlant) (at Assets/Scripts/FarmManager.cs:41)
PlantItem.BuyPlant () (at Assets/Scripts/PlantItem.cs:30)
I checked the scripts several times, doesn't seem to be a spelling mistake.
Do you have an idea of where my mistake could be?
Hey, did you do what I did at 46:01? You should do that to the prefab (the PlantItem prefab) and not to the object on the scene (because then it won't update all the prefabs). You should also check that the PlantItems object on scene (for the three plants) are still linked to the prefab (when they are they have this blueish tint) and if they're not you can duplicate them from the original prefab and give them their respective plants or you can just do the same you did for the prefabs to the objects on the scene (the objects right now don't matter that much because on part 4 I show how to load them through script, but you should check if they're working).
@@SilverlyBee Yes! I didn't edit the prefab. Thanks a lot! Now it works perfectly.
@@basiccomponents Nice!
@@SilverlyBee I did everything you said to do and it still is not working
thank you for this tutorial, it has been very helpful. I have a problem, when at 15:34 I add the second icon, when I edit the the second icon it changes the background icon too, for example when I resize and I change the image, it also changes the background image. Do you have any suggestions on how to fix this?
Is it changing both of them? Or only the background? You should make sure that you have selected the icon object and that it is a children of the background (if it's the other way around then it could be causing you problems). You could try creating the icon separately and once you have adjusted it to the way you like it you drag the object on the hierarchy to the background (making it a child of the background) and then just correcting its position.
@@SilverlyBee Thank you for the fast reply! I closed Unity for half an hour and now it works fine. I tried to close and reopen it again before wrtiting the first message but it didn't do anything. I don't know why Unity behaves like this sometimes. I will keep in mind your solutions if I am presented again with this problem. Thanks!
@@basiccomponents No problem! I tried to answer to your other comments as well (because they appeared on my notifications) but I haven't been able to, I'm guessing you have deleted them. If you have any questions feel free to ask them! :)
@@SilverlyBee Yes, since I found out where the problem was I didn't want to bother you! Thanks a lot, I certainly will in the future!
I think this game is better if there is a process of watering and fertilizing.
can you add thats part in to the game?
overall this tutorial is very good and I like it
Hi there, I'll be sure to make one then :)
@@SilverlyBee thank you... i'm waiting for that :)
Super helpful for a project I'm working on!! No worries if you don't know/not enough info but mine keeps crashing when I deselect an object in game mode. Would you know what could be causing something like that?
You should check on the error message. If there's none you could use the debug.log to pinpoint what exactly is causing the crash.
Hi, thank you very much for this tutorial. I am only using one plot as I could not get the prefab brushes to work, which is fine because I only want one plot, but I have a problem with it and I'm hoping you can help. When the plant stage reaches its final stage, Corn_3, the sprite is moved down one pixel. Do you know how I can get this sprite to go back up one pixel so it stays in the same position as Corn_0, Corn_1 and Corn_2?
Hey, there's other ways of getting more plots even without the prefab brush (just duplicate the prefab for instance). You could check if the pivot is correctly at the center bottom for all sprites, maybe it's moved by a pixel or so.
@@SilverlyBee Ahh, woops, I didn't see that the pivot was off a little, thank you! And I will duplicate them instead, good to know!
Really good tuturial series, but maybe a singleton instance would be a better option for the FarmManager
Thanks! And sure it could be a singleton
do i am allow to use your sprite for comercial things???
I would be very grateful if i would be allowed to youse them. thx for the nice tutorial:)
Sure, but credits would be nice :)
@@SilverlyBee okay thanks and thanks again for the great tutorial. have a nice day.:)
@@massambafall7459 thanks! You too :)
It's really work!💕
Please upload tutorial how to make farm and chill game :)
Hi there, the farm and chill is just the same as this one, but with a different tileset and this one has a few additional features. The only parts missing from this one is the watering/fertilizer mechanics as well as buying the plot land, would you like to see that?
Yes, I want to see parts of watering, fertilizing and buying the plot land.
Please share video tutorial
@@kanlimun7123 I'll be sure to make one then :)
@@SilverlyBee Thank you very much :)
I got very lost at the UI part, maybe a bit more explanation would have been nice, apart from that, great tutorial
Thanks for the input! I'll try to explain it better on the next one :)
@@SilverlyBee thanks for being positive about it :)
your voice is so cute !!!
Thank you :)