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 :)
Exactly the video I needed - thank you!
Thank you so much this is amazing!
Thanks for the tutorial my friend!
Tks
개쩐다 -_)b
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.)
Look at my "Mouse over Label" video: ua-cam.com/video/wsi7vtD3B6g/v-deo.html
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.
The issue was using a color rect instead of texture rect for background.
I m glad you found your error :)
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..
How to take items to the inventory?
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
@@DevDrache at least give us the link of this video
The link is in the video description.
Sorry forgot to mention.
Here is also the link:
ua-cam.com/video/KguNMUQpz0Y/v-deo.html
@@DevDrache make today a tutorial about how to use items in inventory
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