How to Create PROCEDURAL Generation in Godot 4

Поделиться
HTML-код
  • Опубликовано: 31 июл 2024
  • Procedural Generation is complex but for Godot 4 this tutorial makes it so much simpler. I walk you through step by step the best way to go about procedural generation in Godot. From the basics to step by step real example scenes. This tutorial uses the Gaea Addon to create procedural generation. Gaea is a Procedural Generation add-on for Godot 4.2+ and works amazingly. Procedural Generation is so important and really a major feature in so many big games. I know that developers would love to have procedural generation in their games but they just can't figure out how to do it. So I hope this Godot tutorial helps!
    Huge shout out to all the creators of the Gaea addon find them and the addon download here:github.com/BenjaTK/Gaea
    Link to Itch for Project’s and Art:devworm.itch.io/procedural-ge...
    ^ If you are downloading the projects be sure to open the AssetLib tab at the top of your project then click “plugins” and enable the Gaea Addon.
    Official Godot Docs: docs.godotengine.org/en/stabl...
    Chapters:
    0:00 Intro
    0:30 Gaea Basic’s
    2:39 Top-Down Generation
    16:01 Rogue-Like Generation
    Thank you so much for watching, I really hope this video helped.
    if you did enjoy or this video was helpful then all I ask is if you could please subscribe to help out the channel. It means so much and I love your feedback in the comments. I’ll look forward to getting back to you soon! Again thanks so much and I would love to see you again!
    These Tutorials take a lot of time to create and I’m working on becoming a better Teacher and learning how to explain Godot things in a better way, if you’d like to support this journey to expand knowledge and help other game dev’s learn to create their own games then please.. Become a Member! It would mean the world and you’ll help me out so much! Thank you!
    have a great rest of your day and of course be safe :)
    - thanks DevWorm

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

  • @neontetra7208
    @neontetra7208 4 месяца назад +29

    i used your godot rpg and survival tutorial few months ago, now i can write scripts for anything i want :) im doing a pretty big project so im waiting for more videos

    • @dev-worm
      @dev-worm  4 месяца назад +4

      so happy to hear!! that is wonderful! congrats

  • @slackjawedpenguin3306
    @slackjawedpenguin3306 3 месяца назад +2

    I love your tutorial videos! They are onto the point and easily understood! Keep it up!

    • @dev-worm
      @dev-worm  3 месяца назад

      Happy to hear that! thank you so much!

  • @Zyppeh
    @Zyppeh 3 месяца назад

    Great video explaining an amazing addon! Happy I found your channel today!

    • @dev-worm
      @dev-worm  3 месяца назад

      happy it was informative!! wish you the best with Gaea!! Goodluck! thank you!

  • @goldfisho15
    @goldfisho15 4 месяца назад +1

    Wow your videos are great and your backlog looks incredible too! Keep it up, subbed!

    • @dev-worm
      @dev-worm  3 месяца назад

      thank you so much!!

  • @AdamsAGD
    @AdamsAGD 3 месяца назад

    DevWorm !!! you were one of my first godot tutorialors !

    • @dev-worm
      @dev-worm  3 месяца назад

      wow!! so happy to hear!! thank you so much!! I really hope I did a good job as a teacher!

  • @currypancake208
    @currypancake208 2 месяца назад +1

    Wow, super easy to do and understand. Great work, thanks for tutorial

    • @dev-worm
      @dev-worm  2 месяца назад

      of course anytime!! thank you so much! it means the world!

  • @wizardpooypants8671
    @wizardpooypants8671 2 месяца назад

    This has been one of my favorite videos of yours and the one I’m currently using for a project, could you make a video on using time data, like detecting wether the user is on land or water?

  • @Frank_144
    @Frank_144 4 месяца назад

    Thanks for the tutorials m8, I'll make sure to watch the series

    • @dev-worm
      @dev-worm  4 месяца назад +1

      thanks!! hope they help!! if you ever need anything then please let me know!

  • @NexusBaum
    @NexusBaum 4 месяца назад

    the guy with the good stuff is back!

    • @dev-worm
      @dev-worm  4 месяца назад

      aw thanks!! means the world!

  • @Spaced0ut000
    @Spaced0ut000 4 месяца назад +9

    We need a new video going over scene transitions 🥺 I followed the last one exactly, multiple times and I’m still having errors going back to the main scene and I’ve seen other in the comments having issues as well.
    Maybe one day you can go into more detail about how scene transitions work. Thanks for all your help.

    • @dev-worm
      @dev-worm  4 месяца назад +5

      Ill really start looking into creating a more detailed one in the future! I'm sorry about the errors happening with the old one now

    • @Spaced0ut000
      @Spaced0ut000 4 месяца назад +2

      @@dev-worm it’s okay not your fault!! Truly thankful for all the videos either way, I have learned so much fr 🙏

  • @felipezymor9970
    @felipezymor9970 3 месяца назад

    Amazing, just what I needed. Could you please make a video showing how to access ground tiles, for example, to place enemies and props in the Gaea generated dungeon?

  • @j.archives4319
    @j.archives4319 4 месяца назад +19

    We need a dialogic video IMMEDIATELY YOURE AMAZING

    • @dev-worm
      @dev-worm  4 месяца назад +6

      i think youre right!! thank you!! it means the world!

  • @jackwinner4810
    @jackwinner4810 3 месяца назад

    Incredible job my friend thank you very much

    • @dev-worm
      @dev-worm  3 месяца назад

      thank you so much!! glad it was able to help!!

  • @justpietro2186
    @justpietro2186 4 месяца назад +1

    Ur the best godot youtuber ever ❤

    • @dev-worm
      @dev-worm  4 месяца назад

      aw thank you so much! it means the world!

  • @Jgames-rj4zr
    @Jgames-rj4zr 3 месяца назад +2

    I'm using the heightmap generator and I can't find any guides for it, and it doesnt have the array thing that the others do so I can only use 1 tile.

  • @juntingdai7928
    @juntingdai7928 Месяц назад +1

    I want to generate multi-layer with “isometric Shape”, so I set up 3 layers in the TileMap. However, when using the gasa plugin, it can only generate two layers. After testing, I found that when setting more than 2 “Sizes” in the Tiles, the third and subsequent tiles are not generated. Why is this happening? Is it because of the isometric Shape? I'm sorry, I'm a beginner.

  • @StickmanDraws_
    @StickmanDraws_ Месяц назад +2

    How would you add enemies and objects that spawn throughout the level?

  • @wassimkamal8446
    @wassimkamal8446 3 месяца назад

    how can we do a top down infinte generation , i enabled the the infinte in the NoiseGenerator but it doesnt seem to do anything should i do it in code ?

  • @noureddinealjazairi6063
    @noureddinealjazairi6063 Месяц назад

    How can I utilize the Gaea plugin in Godot for creating a rogue-like game that has a surface world and underground there exist dungeons and other things because there's a node for each but how can I make it so there are both?

  • @Nyamistaya
    @Nyamistaya 3 месяца назад

    Wow, very cool

  • @lavenda7403
    @lavenda7403 4 месяца назад +1

    Oh, c'est géniale! ,merci pour cette vidéo. Donc, pardonne-moi pour ma question bizarre, mais puis-tu faire une vidéo où tu expliques comment il faut créer les platformers en 3D sur Godot 4?

  • @KristoTheOne
    @KristoTheOne 2 месяца назад

    Can we use Better terrain in this add-on instead of Godot crappy autotiling? Do you think this is possible? Could you point me?

  • @pavel7950
    @pavel7950 3 месяца назад

    Hey man! Great tutorial, can you make one for infinite chunk generation? I've managed to set it up for my game but it lags a lot with Gaea, character skips positions and stuff. Is there any way to fix it?

  • @davidaugustofc2574
    @davidaugustofc2574 28 дней назад

    Hi, can this convert an image to a map? 1 pixel to 1 block, hand drawn map.

  • @EXOTIC__ViBeZ
    @EXOTIC__ViBeZ 25 дней назад

    how do I make a tree spawn with the grass tiles?

  • @BrunoFernandes_84
    @BrunoFernandes_84 4 месяца назад

    very cool, is this appiable to isometric maps?

  • @comnrade
    @comnrade 2 дня назад

    this is amazing, but how i could generate some trees and other stuff with this addon?

  • @Ehren1337
    @Ehren1337 Месяц назад

    Is there something you can do without tilemap and use 3D? Maybe a tutorial for it?

  • @do_it_like_rei
    @do_it_like_rei 3 месяца назад

    Great video as always :D !!! Can you pleaseeee do a video on custom tile data if you haven't? I think it would go great with this video :3

    • @dev-worm
      @dev-worm  3 месяца назад

      I'll look into it!! thank you so much!!

  • @CluTrading
    @CluTrading 4 месяца назад

    Love it

    • @dev-worm
      @dev-worm  4 месяца назад

      happy to hear! thanks!

  • @ChernoPhil
    @ChernoPhil 3 месяца назад

    How can you do it for a sidcroll game?

  • @matthewhalo1799
    @matthewhalo1799 3 месяца назад

    The generate option is missing for me

  • @HtetMyat79
    @HtetMyat79 4 месяца назад +1

    Thanks

    • @dev-worm
      @dev-worm  4 месяца назад +1

      thank you, of course anytime

  • @alotron2332
    @alotron2332 2 месяца назад +2

    can you do tutorial about procedural generation but with trees and rocks that player can collect?

    • @dev-worm
      @dev-worm  2 месяца назад +3

      you would have to spawn the trees and rocks randomly through an other node... and make sure they only spawn on tile type 1 or what ever your grass tile is, so they don't spawn in the ocean. It is kinda hard to explain.. but I might work on a tutorial soon for it! I am going to cover spawning in a future tutorial in the hack'n'slash series so that should help a little with the spawning logic

    • @alotron2332
      @alotron2332 2 месяца назад +2

      @@dev-worm oh thank you very much

  • @TimurBubnov
    @TimurBubnov 24 дня назад

    Hi, your video has been very helpful, but how can you add corner walls to the dungeon procedural generation. It would be very helpful if you answered

    • @dev-worm
      @dev-worm  24 дня назад

      the generation is all done based on how the tileset terrain is set up! so if you set the terrain with corners then everything should generate correctly

  • @user-ko6kn7xp4r
    @user-ko6kn7xp4r 2 месяца назад

    can you do 3d voxel procedural generation?

  • @anonymousaggregator5371
    @anonymousaggregator5371 4 месяца назад

    Wowowiwowow

  • @FourLionsClips
    @FourLionsClips 4 месяца назад

    you are a champ

    • @dev-worm
      @dev-worm  4 месяца назад

      thanks brother!! means the world! if you ever need anything then please let me know!

    • @FourLionsClips
      @FourLionsClips 4 месяца назад

      @@dev-worm no problem haha thanks for putting out vids and helping the community

  • @matthewponder6056
    @matthewponder6056 3 месяца назад

    thanks for the video! any chance you'd be willing to add a HeightmapGenerator2D tutorial as well?

    • @dev-worm
      @dev-worm  3 месяца назад

      might use Gaea in the future for a series.. a terrierra like game series so I'd use it then. But dont wait on me!! I recommend checking out the Gaea docs and trying to learn it there! just reach out to me if you have a question and I can open up my Godot project with Gaea and help you out!

  • @Gambit-YT
    @Gambit-YT 4 месяца назад +1

    DEFINITELY saving this for later. Spent hours trying to code my own procedural generation and it still doesn't work lol

    • @dev-worm
      @dev-worm  3 месяца назад +1

      procedural generation is pretty complex so I hope it helps!! thank you!!

  • @Gobknoblin
    @Gobknoblin 3 месяца назад

    This seems really handy for 2D games, but is it possible to do procedural generation for 3D games in Godot too?

    • @dev-worm
      @dev-worm  3 месяца назад

      yes completely! this same add-on has 3D generator nodes.. so instead of using the 2D ones you can create generations in 3D with Gaea!!

  • @lewdybug
    @lewdybug 13 дней назад

    0:27 ... in more like a game engine im so good at it i dont even know how to script the spawn animation on the CharacterBody2D to play upon first spawn.

  • @CluTrading
    @CluTrading 4 месяца назад +1

    We need a tutorial on jump buffering

    • @dev-worm
      @dev-worm  4 месяца назад +2

      thats a good idea! thanks! Ill look into it now!

  • @richardbeach6478
    @richardbeach6478 4 месяца назад +1

    My generation button doesn't show up when I go to try and generate it?

    • @dev-worm
      @dev-worm  4 месяца назад +1

      make sure toward the bottom of the inspector that the.. editor preview is enabled

    • @oscarng3716
      @oscarng3716 3 месяца назад +1

      @@dev-worm I'm also having the same issue, and yes the editor preview is enabled...
      EDIT: I found my mistake it was I didn't read the description, ^ If you are downloading the projects be sure to open the AssetLib tab at the top of your project then click “plugins” and enable the Gaea Addon.

    • @SquidwardProfilePic
      @SquidwardProfilePic 2 месяца назад

      @@oscarng3716I don’t even see an option to enable gaea, it’s as if I never downloaded it even tho I followed the tutorial

    • @oscarng3716
      @oscarng3716 2 месяца назад

      @@SquidwardProfilePic step 1: move the downloaded gaea mod into your project folder.
      Step 2: of the 4 options 2d, 3d, script, and assetlib(SELECT THIS).
      Step 3: select plugins found in the top right.
      Step 4: enable gaea

  • @SquidwardProfilePic
    @SquidwardProfilePic 2 месяца назад

    i followed the tutorial but i dont have an option to generate anything on the right side of my screen, anyone know why?

    • @dev-worm
      @dev-worm  2 месяца назад

      i dont know why that would be? maybe try reloading godot?

    • @SquidwardProfilePic
      @SquidwardProfilePic 2 месяца назад

      @@dev-worm i managed to fix that last problem, but now my new problem is the lack of the world when i go to run the game. whenever you finished the rogue like section you didnt run the game to see if it worked, and i have no idea how to make the world actually appear when i play it.

  • @InvasionAnimation
    @InvasionAnimation 4 месяца назад +1

    How do you install addons?

    • @dev-worm
      @dev-worm  4 месяца назад +2

      download it from the github and just drag and drop it into youre projects file system

    • @InvasionAnimation
      @InvasionAnimation 4 месяца назад

      @@dev-worm Thank you.

  • @preston26016
    @preston26016 Месяц назад

    I dont have the option to "Generate" is there something im missing?

    • @dev-worm
      @dev-worm  Месяц назад

      try reloading Godot.. this happen to me when I was playing around with the Addon and just restarting Godot fixed it and I haven't came across this bug sense!! So I hope that is able to help you out!

    • @preston26016
      @preston26016 Месяц назад

      @@dev-worm not sure why I didn't think about that but I will when I get home and I'll let ya know thanks

    • @preston26016
      @preston26016 Месяц назад

      @@dev-worm that worked awesomely do you have any tutorials i may be able to follow for a little more info around the heightmap generator?

  • @eyoneplay8510
    @eyoneplay8510 3 месяца назад

    Как сделать бесконечную генерацию? Я бы сильно хотел отдельный ролик или хотя бы ответ

  • @mortysio4435
    @mortysio4435 Месяц назад

    PLEASE DONT STOP MAKING TOUTORIAL ABOUT GODOT, PLEASE🙏

    • @dev-worm
      @dev-worm  Месяц назад

      glad it was helpful!! it means the world to me that it was able to be helpful!! thank you so much!

  • @jasonwilliams8730
    @jasonwilliams8730 4 месяца назад

    👍

  • @Beefyjesus0
    @Beefyjesus0 Месяц назад

    does the generate button not exist anymore?

    • @dev-worm
      @dev-worm  Месяц назад

      it should.. i was actually having the same issue I just played around with it by reinstalling and reopening godot etc.. and it just eventually appeared

    • @Beefyjesus0
      @Beefyjesus0 Месяц назад

      @@dev-worm hood idea, always forget about reinstalling. I'll give it a go, thank ya

  • @sandeepmishra5652
    @sandeepmishra5652 Месяц назад

    can you please make a video about how to download this addon

    • @dev-worm
      @dev-worm  Месяц назад

      which part of the download are you having trouble with? maybe I can help!

    • @sandeepmishra5652
      @sandeepmishra5652 Месяц назад

      ​@dev-worm well I kinda got lost with github like how to add this plugin. So if you could like make a tutorial how we can add this plug-in it would be quite helpful. Anyways man love your content .

  • @plaksh2814
    @plaksh2814 Месяц назад

    godot is showing could not parse global class error for the gaea files. 16 errors in total.
    Edit: took me a few hours but i figured out the correct way to download from github and the correct addon path, i think.

    • @dev-worm
      @dev-worm  Месяц назад

      ah sorry to hear that!! is everything working now??

    • @plaksh2814
      @plaksh2814 Месяц назад

      @@dev-worm yeah! keep up the good work!

    • @plaksh2814
      @plaksh2814 27 дней назад

      @@dev-worm is there a way to create rooms with the walker generator?

  • @DeltaFichier
    @DeltaFichier 2 месяца назад

    How can I add trees or rocks ?

    • @dev-worm
      @dev-worm  Месяц назад +1

      you’d have to spawn them into a certain tile!! so a script that says “hey i wanna spawn this node onto x, y types of tiles..

    • @DeltaFichier
      @DeltaFichier Месяц назад

      Okay thanks

    • @user-wt8fk3yl4d
      @user-wt8fk3yl4d Месяц назад

      ​@@dev-wormCan I have more details? I didn't understand

    • @comnrade
      @comnrade 2 дня назад

      @@dev-worm sooo... i can make a function that gets the (x,y) and the atlas coordinate of a tile and them add the specific node in that position? it should be in the TileMapGaeaRenderer script? i'm a programming newbie srry

  • @PebroGon
    @PebroGon 2 месяца назад

    How to procedurally generate a scene mid game (Vampire survivors style)

    • @dev-worm
      @dev-worm  2 месяца назад +1

      same way as in this video... you just call the $Generator.generate() function

    • @PebroGon
      @PebroGon 2 месяца назад

      @@dev-worm thank you!

  • @SleetyDev
    @SleetyDev 4 месяца назад +1

    hey i made a tutorial in gaea's discord to how to have entity spawning

    • @dev-worm
      @dev-worm  4 месяца назад

      Ooo that seems cool! I might have to go check it out!! thanks bro! good work

  • @Burnrate
    @Burnrate 20 дней назад

    geee-ah 😂

  • @planktime
    @planktime 3 месяца назад

    HELLO!

  • @StepTheGlow
    @StepTheGlow 2 месяца назад

    time to make 5D terraria

    • @dev-worm
      @dev-worm  2 месяца назад +1

      go for it lol!

  • @Nash11045
    @Nash11045 4 месяца назад +1

    Hi DevWorm can you make a tutorial on how to add ads to your game, and how to add in app purchases? Btw I'm new to game development and I really find your videos very helpful Thank You

  • @Daniel_Hamburger
    @Daniel_Hamburger 4 месяца назад

    😭😭😭😭😭😭😭😭😭😭

  • @comradechonky6328
    @comradechonky6328 4 месяца назад

    noo thats my codeeee