Farming & Crop Ageing Mechanics Tutorial for 2D Godot 4 Games

Поділитися
Вставка
  • Опубліковано 28 чер 2024
  • Big tutorial showing one way of having ageing growing plant crops that can be harvested for crop items in a 2D Godot game.
    You might consider using @export_path var next_scene instead of PackedScene because if the packed scene goes missing it can prevent the scene that depends on it from being opened in the editor. If you do, you'll have to call load(next_scene).instantiate() when you want to create a copy of the scene file in the game world.
    Farming Tutorial Scripts
    Ko-fi ➣ko-fi.com/post/SCRIPTS-Farmin...
    Patreon ➣ / 88065195
    Resource Gathering Crash Course (Making Resource Nodes and Pickups)
    • Crash Course ~ How to ...
    For more farming assets, I recommend butterymilk.itch.io/tiny-wond...
    Grid Building Plugin ➣ linktr.ee/gridbuilder
    ➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
    linktr.ee/ChrisTutorials
    ko-fi.com/christutorials
    / christutorials
    chris-tutorials.itch.io/
    ➣ Art Used in Demos and Devlogs
    chris-tutorials.itch.io/gathe...
    butterymilk.itch.io/tiny-wond...
    crusenho.itch.io/complete-gui...
    00:00 - What to Expect
    01:22 - Creating Stages for Corn Plant Scenes
    08:37 - AgeingComponent Script
    20:29 - Assigning AgeingComponent Settings
    22:47 - Grouping Ageing Components
    24:14 - Ageing Button
    29:37 - Testing the Ageing Corn Scenes
    32:33 - Adding ResourceNode Script to Harvestable Corn
    34:18 - Pickup Corn
    37:41 - Corn as Resource Item
    40:26 - Making Corn Harvestable
    45:16 - Corn Plant as Renewable Resource Node
    49:31 - Packed Scenes Cyclical Reference Work Around
    52:53 - Planting Seeds with Grid Builder Plugin
    55:48 - Wrapup
  • Ігри

КОМЕНТАРІ • 20

  • @ChrisTutorialsYT
    @ChrisTutorialsYT  10 місяців тому +8

    I recommend that you use @export_file var next_scene instead of @export var next_scene : PackedScene. In the tutorial, I connect the different corn scenes with PackedScenes which does work. However, if one scene goes missing it can completely break the other ones. Better to have a string pointing to a missing file than being unable to edit scenes due to missing scene dependencies in this case IMHO. You'll have to call load(next_scene).instantiate() to create the scene.

  • @gammavector79
    @gammavector79 7 місяців тому

    This is far and away the best tutorial for getting farming/plant growing mechanics up and running. Thank you so much for making it, and for explaining everything so well!

  • @elmano1202
    @elmano1202 10 місяців тому +2

    This is exactly what I need at the moment, thank you so much!

  • @obirdmano
    @obirdmano 10 місяців тому

    great tutorial, thank you!

  • @Shagrath86
    @Shagrath86 10 місяців тому

    Awesome stuff :)

  • @user-ef2hl5vg6s
    @user-ef2hl5vg6s 8 місяців тому

    Thank you very much for the video

  • @christianhoffmann7284
    @christianhoffmann7284 9 місяців тому

    great tutorials, chris. suggestion, if i may 🙃 could you do one on card game mechanics?

  • @EF5iris
    @EF5iris 7 місяців тому +2

    i havent watched the tutorial in full yet, but couldnt every crop with its stages technically be its own scene? maybe stages are in an array and on every timer countdown you advance the stage and just check what timer value it uses and reset the timer for that-- like a match statement of sorts? and the sprite can be an animated sprite with no actual animation, rather you use the frames to represent different stages

    • @EF5iris
      @EF5iris 7 місяців тому +1

      if you need to run a check on whether the plant is harvestable or not, just run a signal or function that returns the current stage in the array (maybe it could be a stack so you just check the top element, but i havent looked into data structures in godot yet)

  • @Necrincito
    @Necrincito Місяць тому

    Please tutorial, (the player cuts a tree), (the tree shakes due to the cut), (put the number of times the action is performed to cut down the tree), (example: large tree 5 times, medium tree 3, small tree 2) , (when you reach the maximum number of times the tree falls in the animation), (and drop objects on the tree)

  • @Necrincito
    @Necrincito 26 днів тому

    Can you create another tutorial but that contains what I say here???))
    cut trees (the tree shakes if the player cuts them) has a cut (cut trees) action limit (example: 5 times a large tree, 3 times a medium tree, 2 times a small tree) when it reaches the limit (tree aga animation (falling) and falling objects on the tree after (falling tree)

  • @Shadowthevampire
    @Shadowthevampire 6 місяців тому

    butter milks assets is only free for patreons is there any other thats completely free so I can use while im practicing?

  • @Trendsthismonth
    @Trendsthismonth 2 місяці тому

    Is there a script to downlad for the project ?

  • @Shadowthevampire
    @Shadowthevampire 5 місяців тому

    What scripting language are you using in this video?

    • @SyureK13
      @SyureK13 4 місяці тому

      He's scripting in GDscript in this video.

  • @kardrasa
    @kardrasa 10 місяців тому +4

    hehe, I dont know what Im doin in godot hehe

    • @ChrisTutorialsYT
      @ChrisTutorialsYT  10 місяців тому +2

      It gets easier over time lol. When you're used to another engine like Unity, everything else has an extra learning curve. The more I use it the clearer it gets.

    • @Trendsthismonth
      @Trendsthismonth Місяць тому

      You figure it out?

  • @Shadowthevampire
    @Shadowthevampire 6 місяців тому +1

    what settings did you use when making a new project?
    how do I make a sprite sheet for crops like you have?
    The video is very fast
    I wish you couldve explained a bit more so newbies understands.

  • @yannastihar
    @yannastihar 10 місяців тому

    I'm a high school student, I hope you can continue the 2d platformer game sidescrolling tutorial until it becomes an android apk because it's my 2nd semester assignment before graduation 🙏🙏🥺