Unity Farm Game Tutorial - Scriptable Objects - Part 3

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 58

  • @meiner9047
    @meiner9047 3 года назад +3

    this tutorial series is very good. Many Things i learning. (Shop System, Color changes) - Thanks for this!

    • @SilverlyBee
      @SilverlyBee  3 года назад +1

      I'm glad this helped! Thank you for watching!

  • @samsonwang1693
    @samsonwang1693 2 года назад +3

    I first learn unity,and meet a great tutorial.

  • @Stripe0022
    @Stripe0022 3 года назад +2

    This is an Awesome video, I love the breaks between each segment. And love your coding. Following!

    • @SilverlyBee
      @SilverlyBee  3 года назад

      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

  • @davidmaloney7245
    @davidmaloney7245 3 года назад +2

    These are really good, very helpful, thanks for your hard work.

    • @SilverlyBee
      @SilverlyBee  3 года назад

      Thank you for your comment! :)

    • @kennysin4you
      @kennysin4you 2 года назад

      @@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.

    • @SilverlyBee
      @SilverlyBee  2 года назад

      @@kennysin4you Nice!

  • @adamring5325
    @adamring5325 3 года назад +1

    How come videos made by women are 100% more educational. Amazing to see you videos.

  • @qmerk2661
    @qmerk2661 Год назад +2

    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

    • @AlejandroAlcantara
      @AlejandroAlcantara Год назад +2

      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.

  • @caep-caeen7657
    @caep-caeen7657 2 года назад

    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?

    • @SilverlyBee
      @SilverlyBee  2 года назад

      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.

  • @onikishin3396
    @onikishin3396 Год назад

    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

  • @Xavaltir
    @Xavaltir 3 года назад +1

    Really good tuturial series, but maybe a singleton instance would be a better option for the FarmManager

    • @SilverlyBee
      @SilverlyBee  3 года назад

      Thanks! And sure it could be a singleton

  • @Buddy-O
    @Buddy-O 3 года назад +2

    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

    • @SilverlyBee
      @SilverlyBee  3 года назад +2

      Hi there, I'll be sure to make one then :)

    • @Buddy-O
      @Buddy-O 3 года назад +1

      @@SilverlyBee thank you... i'm waiting for that :)

  • @cptnawzum5663
    @cptnawzum5663 2 года назад

    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?

    • @SilverlyBee
      @SilverlyBee  2 года назад +1

      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.

    • @cptnawzum5663
      @cptnawzum5663 2 года назад +1

      @@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!

  • @lovesky2921
    @lovesky2921 2 года назад

    It's really work!💕

  • @basiccomponents
    @basiccomponents 3 года назад

    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?

    • @SilverlyBee
      @SilverlyBee  3 года назад +1

      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.

    • @basiccomponents
      @basiccomponents 3 года назад

      @@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!

    • @SilverlyBee
      @SilverlyBee  3 года назад +1

      @@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! :)

    • @basiccomponents
      @basiccomponents 3 года назад +1

      @@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!

  • @massambafall7459
    @massambafall7459 3 года назад

    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:)

    • @SilverlyBee
      @SilverlyBee  3 года назад

      Sure, but credits would be nice :)

    • @massambafall7459
      @massambafall7459 3 года назад

      ​@@SilverlyBee okay thanks and thanks again for the great tutorial. have a nice day.:)

    • @SilverlyBee
      @SilverlyBee  3 года назад

      @@massambafall7459 thanks! You too :)

  • @basiccomponents
    @basiccomponents 3 года назад

    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?

    • @SilverlyBee
      @SilverlyBee  3 года назад

      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).

    • @basiccomponents
      @basiccomponents 3 года назад +1

      @@SilverlyBee Yes! I didn't edit the prefab. Thanks a lot! Now it works perfectly.

    • @SilverlyBee
      @SilverlyBee  3 года назад +1

      @@basiccomponents Nice!

    • @cameronatkinson790
      @cameronatkinson790 2 года назад

      @@SilverlyBee I did everything you said to do and it still is not working

  • @aliabboud4611
    @aliabboud4611 2 года назад

    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 ?

    • @themersues5345
      @themersues5345 2 года назад +1

      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.

    • @aliabboud4611
      @aliabboud4611 2 года назад

      @@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

  • @NamTVP
    @NamTVP 3 года назад +2

    your voice is so cute !!!

  • @codeize1447
    @codeize1447 3 года назад +1

    I got very lost at the UI part, maybe a bit more explanation would have been nice, apart from that, great tutorial

    • @SilverlyBee
      @SilverlyBee  3 года назад

      Thanks for the input! I'll try to explain it better on the next one :)

    • @codeize1447
      @codeize1447 3 года назад +1

      @@SilverlyBee thanks for being positive about it :)

  • @kanlimun7123
    @kanlimun7123 3 года назад +2

    Please upload tutorial how to make farm and chill game :)

    • @SilverlyBee
      @SilverlyBee  3 года назад

      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?

    • @kanlimun7123
      @kanlimun7123 3 года назад +1

      Yes, I want to see parts of watering, fertilizing and buying the plot land.
      Please share video tutorial

    • @SilverlyBee
      @SilverlyBee  3 года назад +2

      @@kanlimun7123 I'll be sure to make one then :)

    • @kanlimun7123
      @kanlimun7123 3 года назад +3

      @@SilverlyBee Thank you very much :)