Inventory System - UI and drag & drop - Learn Godot 4 UI - no talking

Поділитися
Вставка
  • Опубліковано 17 чер 2024
  • In this video I show you how to create an inventory UI and how to change it with drag and drop code in godot.
    If you liked the video and are interested in more don't forget to subscribe.
    And If you would like a video about a game mechanic, leave a comment about it
    📜 Note
    Part 2 - Data management: • Inventory System - dat...
    💎 Assets
    Inventory: elvgames.itch.io/free-invento...
    Icons: shikashipx.itch.io/shikashis-...
    Knight: xzany.itch.io/free-knight-2d-...
    🎵 Music credits
    "Ancient Winds" from Kevin MacLeod
    ❤️ Support the Channel
    Ko-Fi: ko-fi.com/devdrache
    🎬 Video Chapters
    0:00 - What you can expect
    0:11 - create inventory ui
    4:28 - code drag & drop
    ☠️ Difficulty Levels
    Beginner: Very few and simple code - For everyone
    Beginner 2: More code but still quite simple
    Advanced: Basiscs must be in place, simple code is over
    Advanced 2: now things are getting wild :)

КОМЕНТАРІ • 19

  • @ericajcruz
    @ericajcruz 13 днів тому

    Exactly the video I needed - thank you!

  • @AlphaFrameOfficial
    @AlphaFrameOfficial Місяць тому +2

    Thank you so much this is amazing!

  • @AliceMadTeaParty
    @AliceMadTeaParty Місяць тому +2

    Thanks for the tutorial my friend!

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

    Tks

  • @gim-ori
    @gim-ori Місяць тому

    개쩐다 -_)b

  • @1tsKayne
    @1tsKayne 12 днів тому

    How could I add a Window for every selected Item, that shows details and maybe a descriptive text for the items.. (based on the type its either damage, or defense, health etc.)

    • @DevDrache
      @DevDrache  11 днів тому +1

      Look at my "Mouse over Label" video: ua-cam.com/video/wsi7vtD3B6g/v-deo.html

  • @YueWu-lu9pg
    @YueWu-lu9pg 6 днів тому

    This doesn't work for me for some reason. No preview show up and nodes don't respond to dragging. I triple checked the code and set up the scene exactly like in the video.

    • @YueWu-lu9pg
      @YueWu-lu9pg 6 днів тому

      The issue was using a color rect instead of texture rect for background.

    • @DevDrache
      @DevDrache  6 днів тому +1

      I m glad you found your error :)

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

    Hello ma friend. Your working on top down RPG? last time we chat I'm still noob about programming so I relearn everything about code.. Your so good now this is the things I want to learn too but I'm working on 2D platformer.. Where you from? I think this is good thing we build alliance because I'm solo developer in the future I'm going to create one biggest game just like Hollow night.. right now I can code more than 500 lines of code but it take me to relearn everything about coding..

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

    How to take items to the inventory?

    • @DevDrache
      @DevDrache  Місяць тому +5

      The idea for this can you find in my "simple bag system" video.
      Short description:
      you need an array to save all items you have.
      The items are objects or resources with information like icon and inventar pos.
      The slot texturerects should be own scenes with a script to save information on it.
      So when you drag and drop you can read the information what item it is and can change it.
      For the start of the inventory you need a function to load the items in the inventory texturerect slots.
      if there is interest I could also make a second part to show the data part exactly on this example

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

      @@DevDrache at least give us the link of this video

    • @DevDrache
      @DevDrache  Місяць тому +3

      The link is in the video description.
      Sorry forgot to mention.
      Here is also the link:
      ua-cam.com/video/KguNMUQpz0Y/v-deo.html

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

      @@DevDrache make today a tutorial about how to use items in inventory

    • @DevDrache
      @DevDrache  Місяць тому +3

      not today, but i can do it for monday.
      i make an video about the datasystem for die inventory.
      With that it sould be easy use the items