How to Create a INVENTORY in Godot 4 (step by step)

  Рет қаралды 70,277

DevWorm

DevWorm

Күн бұрын

This video is a step by step process to creating an excellent well working inventory system in Godot 4, I spent a long time trying to figure out the best way to create the most functional and efficient inventory system in Godot, and after a lot of research I’ve decide this is the best possible way in my opinion so I wanted to share and make a tutorial on the step by step process of how to create it and wanted to teach you how to implement this inventory system for your own Godot game.
Link to Part 2 of the Inventory Tutorial: • How to Create a INVENT...
Link to Series Art: devworm.itch.i...
Link to Complete Survival Series Playlist: • How to Make Survival G...
Thank you so much for watching, if this video helped then please hit the subscribe button and drop a like on this video so you can help me get this tutorial in front of more aspiring game developers, so they can learn to create their own Godot games as well. Stay Safe and have a wonderful rest of your day!
took inspiration from other youtube tutorials on the topic and combined ideas to try and explain this 2 part inventory tutorial series in the best possible way.

Пікірлер: 215
@dev-worm
@dev-worm 11 ай бұрын
Link to Part 2 of Inventory Tutorial: kzbin.info/www/bejne/nKq1lIVseJp7aMk This is Episode 4 of the Survival Series. Complete Survival Series Playlist: kzbin.info/aero/PL3cGrGHvkwn2NOT1LSwf5d2XZmlc5Bjsn Hope this series helps!
@cyrilduchange3777
@cyrilduchange3777 3 ай бұрын
Help is a small word. Bravo.
@origenydestino13
@origenydestino13 5 ай бұрын
Yet again you cover something very "basic" for a functional game and you provide with tools to create a quick inventory system that feels so satisfying to test in your own project. I will also admit one thing, which is the fact that even your mistakes were important because they helped me search and identify the mistakes myself, which helps improving your understanding of the code. Again thanks a lot for all this, really appreciated!
@dev-worm
@dev-worm 5 ай бұрын
thank you so much for that! I am so glad everything came out perfect and was able to help you understand and learn! searching for the mistakes is so important but so annoying at the same time lol!! thanks! and if you ever need anything at all then please let me know!
@magni319
@magni319 4 ай бұрын
Perfect. This is EXACTLY what I needed, step by step, no bloat.
@dev-worm
@dev-worm 4 ай бұрын
so happy to hear! thanks!
@GenTink
@GenTink 10 ай бұрын
Your tutorials make everything so simple and straight forward, which is exactly what I need when I'm starting out. Maybe there are "better" ways to do things, but if I can't understand why it's better I'm not learning, so this is perfect.
@iky1157
@iky1157 10 ай бұрын
video quality stunned me into commenting. incredibly clean and concise. you knew what we wanted when we searched for a tutorial like this and delivered perfectly. not much like this around these days, keep it up
@vincentfeng-z5f
@vincentfeng-z5f 11 ай бұрын
Thank you for sticking with godot tutorials, it means a lot to junior developers like me! love from china
@dev-worm
@dev-worm 11 ай бұрын
of course!! So many more are on the way soon! I'm so glad Im able to help.. if you need anything then please let me know!
@jeremiahaemile2008
@jeremiahaemile2008 11 ай бұрын
Wow 😳from china
@vincentfeng-z5f
@vincentfeng-z5f 11 ай бұрын
Looking forward to it!@@dev-worm
@drewalmonds6219
@drewalmonds6219 11 ай бұрын
Thank you. I have watched many videos on Godot Resources and this was the first one that really made it all click for me. The work flow simplifies so many things that I have been frustrated with while working on my game.
@dev-worm
@dev-worm 11 ай бұрын
so glad to hear!!
@Mordkaleb
@Mordkaleb 4 ай бұрын
Great tutorial! You spoke a little bit quickly. I was able to follow you, but the video felt a little rushed as a result. Everything else was great! There was a clear through-line for the tutorial, and I liked seeing the errors, as that's how regular programming goes, you never get it perfect the first time. Very helpful for my own project, thanks!
@dev-worm
@dev-worm 4 ай бұрын
so glad to hear!! I am sorry it was a but quick! I will take that into consideration for future tutorials!
@zoeandrews7422
@zoeandrews7422 11 ай бұрын
Hey there! I’ve been watching your videos for a while now. You’re a REALLY great teacher and deserve so much more subscribers. I also really appreciate when you make little mistakes or hiccups. Sometimes with new devs, we don’t know that it’s okay to make mistakes or how to debug, so seeing you make little mistakes and work towards solving it is really helpful and wholesome to see. Really much looking forward to more videos. Hope you’re not overworking yourself, just wanna say I genuinely appreciate your channel and work
@antscologne2962
@antscologne2962 10 ай бұрын
As you already have a local variable like "is_open", you don't need further functions for opening and closing the inventory. This is how I did it (first part of the inventory creation): class_name InventoryUi extends Control # I think class_name should be before the extends var is_open = false func _ready(): visible = is_open # starting as false func _process(delta): if Input.is_action_just_pressed("inventory"): # I like names like "inventory" instead of "i" show_inv() func show_inv(): # no need for separate functions open() and close() - reducing bugs visible = !is_open is_open = visible Less lines of code is always better 😅
@Nezarus0
@Nezarus0 9 ай бұрын
Your suggestion is fine, but I can't get behind the 'less lines is better' line of thinking. More lines is better if it means your code is easy to understand in the future. Do not underestimate how much time you will sink looking at your own code on any larger project.
@antscologne2962
@antscologne2962 8 ай бұрын
@@Nezarus0 Sorry, I switched to "Ants Godot" (my new Godot channel) and haven't seen your comment earlier. You are right: short code might be too confusing. I meant the "keep it simple, stupid" (KISS) paradigma. Don't use additional variables if you already have the visibility that you can toggle, just as an examample. I also like code that you can read without comments and prefer: for line in text... rather than: for i in s🤣
@quanghieudang8659
@quanghieudang8659 2 ай бұрын
I'm super new to game dev and just get in the first 5 minutes and it cost me like 4h to understand the codes you are using even i watched all of your previous tutorials and now I can understand more things about coding. Thank you very much.
@Joan-kr1jo
@Joan-kr1jo Ай бұрын
I really like this aproach for making reusable inventories with that kind of "interfaces". Thank you.
@Xiper0101
@Xiper0101 11 ай бұрын
Finally new video, I'm already waiting for the next!
@dev-worm
@dev-worm 11 ай бұрын
next one is coming very soon!!
@sonny5497
@sonny5497 11 ай бұрын
Just what I needed! Thanks a lot man you rock
@dev-worm
@dev-worm 11 ай бұрын
so glad to hear you found what you needed, and so glad that I was able to help!
@pixiri21
@pixiri21 2 ай бұрын
Excellent tutorial. No fluff, straight to the point.
@dev-worm
@dev-worm 2 ай бұрын
glad to hear!! hope it was helpful!! thank you!
@ShahidZia-of1mk
@ShahidZia-of1mk 5 ай бұрын
Bro woke up and chose to make games.. Really appreciate you efforts
@dev-worm
@dev-worm 5 ай бұрын
haha thanks!! hope it helped!
@robertschruffer9640
@robertschruffer9640 10 ай бұрын
Hello everyone, I'm from Germany and my English isn't that good, so I have a hard time understanding what you're saying, but I like to watch how you do it, it's great. One question, are the 2 videos with loading and saving the Idems? I just started with Godot, I'm 59 years old, so it's not easy. Best regards
@kalebmcgregor2993
@kalebmcgregor2993 2 ай бұрын
I don't normally like video tutorials, but this one was super helpful. Thanks for the content!
@dev-worm
@dev-worm 2 ай бұрын
Glad it was helpful! thank you!
@jeremiahaemile2008
@jeremiahaemile2008 11 ай бұрын
You are incredible teacher 😍
@dev-worm
@dev-worm 11 ай бұрын
Thanks!! it means the world to me!
@Crits-Crafts
@Crits-Crafts 2 ай бұрын
This is really nice. I was working on a game where the player has a "phone" and could gain apps to control things in the game world. This works perfectly for the UI. Amazing video and really clear as always
@dev-worm
@dev-worm 2 ай бұрын
that sounds like a really interesting idea!! id love to play it some day! thank you I am so glad to hear it helped!
@darrenbostock6645
@darrenbostock6645 11 ай бұрын
just came across your channel, 5 stars. you break things down nicely for us coming over to Godot.
@MisterOodles
@MisterOodles 2 ай бұрын
per-usual awesome video. Only thing I had issues was the importance of saving the scrytps before looking for the resources. thank you again my dude
@jasenlakic5033
@jasenlakic5033 11 ай бұрын
Very good explanations and practical solution, thanks! I can see it can be quite useful also in creating a strategy construction or unit recruitement menu UI.
@msilva1999
@msilva1999 6 ай бұрын
You explained this so well! Thank you for explaining everything in a simple way and not just rushing through the code
@dev-worm
@dev-worm 6 ай бұрын
so happy to hear! thank you! of course that my only goal.. to make understandable un-confusing tutorials!! so happy they come off that way, it means the world!! thank you @msilva1999 and if you ever need anything then please let me know!
@msilva1999
@msilva1999 6 ай бұрын
@@dev-worm thank you! 😊 I'll keep watching your videos to start making my first attempt at a game hehe Keep up the great work!
@AsarathaHSYT
@AsarathaHSYT 11 ай бұрын
Hey. Any chance you plan on going as far as making a hotbar where you can drag items onto? Inventory/Hotbar systems are where I am most stuck right now. I also have a spell book and plan on having those also draggable onto the hotbar, but I can probably figure that out myself when the rest is figured out lol
@Ocdib
@Ocdib 11 ай бұрын
YOU DROPPED THIS 👑
@citysushicoochi5497
@citysushicoochi5497 4 ай бұрын
Your channel has been very helpful and has been a great stepping stone to my own project! Thank you!
@dev-worm
@dev-worm 4 ай бұрын
so happy to hear!! thank you so much!
@4g4m3n0n
@4g4m3n0n 5 ай бұрын
Excellent! Very detailed, not too fast and not too slow. Subscribed right away!
@dev-worm
@dev-worm 5 ай бұрын
so great to hear! thanks! if you ever need anything then please let me know!
@tomoyaokazaki2138
@tomoyaokazaki2138 5 ай бұрын
The Inventory System Part 1 video works perfectly well for Godot 4.2 So far, the one and only video that I was having problems with was episode 1 for setting up the walking system for walking in all 8 directions. Besides that, the rest of the videos (including this video) worked perfect for me with Godot 4.2 :D Can't wait to finish the inventory system in Part 2!
@dev-worm
@dev-worm 5 ай бұрын
glad to hear!! sorry about the 8 directions system, I dont know what could be wrong! if you run into any issue is the next episodes then please let me know!
@tomoyaokazaki2138
@tomoyaokazaki2138 5 ай бұрын
@@dev-worm after finishing Part 2, the inventory system itself works perfectly well. But I got visual issues such as Ysorting not working the way it’s supposed to work.
@bloodcc5168
@bloodcc5168 3 ай бұрын
thank you it is a really quick tutorial that save a lot of time
@dev-worm
@dev-worm 3 ай бұрын
so glad to hear!
@Jivian2024
@Jivian2024 11 ай бұрын
Yay thanks thank you so much
@dev-worm
@dev-worm 11 ай бұрын
of cource anytime! If you need anything then please let me know!
@Jivian2024
@Jivian2024 11 ай бұрын
@@dev-wormcongratulations on 10k🎉
@inyoke1241
@inyoke1241 11 ай бұрын
hopes to see the second part soon !
@dev-worm
@dev-worm 11 ай бұрын
coming very soon!
@SchildkroeteHundFisch
@SchildkroeteHundFisch 7 ай бұрын
Nice Videos! It‘d be really cool if you‘d build on this one in a regular one, where you make a hotbar…
@dev-worm
@dev-worm 7 ай бұрын
you could turn this into a hotbar view.. or create a different view of the same inventory into a hotbar
@SchildkroeteHundFisch
@SchildkroeteHundFisch 7 ай бұрын
@@dev-worm Oh Wow, thanks for responding, I’ll give things a try, although I‘m still pretty new, but I‘m learning… Edit: I made it work now, things weren’t really as hard as I thought it‘d be now, I‘ll continue your tutorials and try making items dragable. Thanks again
@N1thium
@N1thium 5 ай бұрын
Amazing tutorial series! I hope you can keep going! I rly would love to see add a craft system or something like that!
@dev-worm
@dev-worm 5 ай бұрын
crafting would be really cool!! I might start working on that!
@Dustifer
@Dustifer 5 ай бұрын
Omg he might do crafting, I need this (wanna make a game where you brew coffee, and crafting is kinda important for that)
@ManaTrooo
@ManaTrooo 11 ай бұрын
13:42 if u do control d it duplicates the choosen slot :)
@VentusArt
@VentusArt 9 ай бұрын
love you man you are the best!
@dev-worm
@dev-worm 9 ай бұрын
thanks that means the world! Glad I was able to help!
@baonguyen4557
@baonguyen4557 8 ай бұрын
it works,thanks!!
@dev-worm
@dev-worm 8 ай бұрын
so glad to hear that!
@ramonpablito9154
@ramonpablito9154 5 ай бұрын
thanks for your tutorials brother they're great
@dev-worm
@dev-worm 5 ай бұрын
so happy to hear!! thank you so much!
@annawetel956
@annawetel956 10 ай бұрын
to toggle inv visibility you can simply call a input function. inv.visible = !inv.visible
@718Outdoors
@718Outdoors 7 ай бұрын
I gotta say...I've "been around the block" in terms of seeking out clear tutorials...and I keep coming back to DevWorm (and I'm a fan of the mid-Atlantic accent...somewhere between Philly and Baltimore if I could venture a guess). Anyway, really great stuff here!
@dev-worm
@dev-worm 7 ай бұрын
ah man! means the world!! more south and in a bigger state... maybe you could guess now lol! But it means the world!! thanks so much and I hope you keep finding the content helpful!
@718Outdoors
@718Outdoors 7 ай бұрын
Do you have any resources for how to create the use of inventory items in a combat/NPC event...for instance, I have binoculars in my inventory that add +2 to the success of this NPC event?@@dev-worm
@718Outdoors
@718Outdoors 7 ай бұрын
...as far as guessing a state..I really had it pegged in the DelMarVa (Delaware/Maryland/Virginia) Peninsula...maybe venturing as far south as NC? Anyway, no need to tell me as online privacy is important.@@dev-worm
@KeremLBJ
@KeremLBJ 11 ай бұрын
Great instructive videos! Can you also make a video on how to create different playable characters? (Like in brotato for example)
@ashasonshine7050
@ashasonshine7050 11 ай бұрын
You are doing a good job. I like your stuff, but mine seems to have gone wrong and says I can't preload? Do you make troubleshooting videos?
@PixelPulse4546
@PixelPulse4546 7 ай бұрын
Awesome, helped me so much! Great video.
@dev-worm
@dev-worm 7 ай бұрын
awesome to hear!! thank you!!
@jeremiahaemile2008
@jeremiahaemile2008 11 ай бұрын
Congratulations for 10k ❤❤in advance
@dev-worm
@dev-worm 11 ай бұрын
Thank you so much!! Jeremiah, I see you all the time in the comment section and I just wanted to thank you so much for putting the time and effort in to help me out! I smile all the time when I see your comments and It truly makes my day! All love to you brother, it means the world to me! Im wishing the best for you in everything you do! Have an amazing day!!
@jeremiahaemile2008
@jeremiahaemile2008 11 ай бұрын
@@dev-worm 😍😍
@anajamx
@anajamx Ай бұрын
you sir are amazing
@allicayz9101
@allicayz9101 6 ай бұрын
Keep up the good work ❤
@dev-worm
@dev-worm 6 ай бұрын
thank you so much!
@drakenork
@drakenork 3 ай бұрын
Thx for video ❤
@dev-worm
@dev-worm 3 ай бұрын
thank you! hope it helped!
@AliceMadTeaParty
@AliceMadTeaParty 11 ай бұрын
thx man
@kristisnoobpw5767
@kristisnoobpw5767 11 ай бұрын
finally!!! a new video
@Soulcode-k
@Soulcode-k 8 ай бұрын
Thank you so much. For making such amazing tutorial. ❤ But had a question that This should work on godot 3.5 right?
@dev-worm
@dev-worm 8 ай бұрын
um. i don't think so, maybe if some things are changed but some of the functions used are in Godot 4 only. Thank you, sorry for this issue. I hope you are able to work around it.. if you are having issues then let me know and maybe ill beable to help!
@Soulcode-k
@Soulcode-k 8 ай бұрын
@@dev-worm well I tested it and did not work as you shown but maybe if i see more other tutorials i could figure it out. 🙏💕Thank you
@FleynSoft
@FleynSoft 11 ай бұрын
❤thx, great video
@dev-worm
@dev-worm 11 ай бұрын
x20 seems really fast lol!!
@alexkoehn6564
@alexkoehn6564 2 ай бұрын
for anyone wondering why their images are blurry, you can click on the texture setting and change the filter to nearest.
@As9419
@As9419 11 ай бұрын
maybe make a tutorial on the mechanics of point and click games like e.g. Cube Escape
@Betegfos
@Betegfos 9 ай бұрын
Nice one! Thanks a lot for this. How do you handle saving the game state including the list of items in the inventory?
@dev-worm
@dev-worm 9 ай бұрын
working on a save and load game data video right now.. going to try and upload it tomorrow!
@darkhunter777
@darkhunter777 2 ай бұрын
Variant close invenory from button, open from signal 🤩: func _input(event): if event.is_action_pressed("inv"): $".".visible = true func _on_button_pressed(): $".".visible = false
@dev-worm
@dev-worm 2 ай бұрын
looks amazing!
@darkhunter777
@darkhunter777 2 ай бұрын
@@dev-worm You didn't make slots in the character. If this is not the case, you can simply store data in variables. Inventory is not necessary then
@DrW1ne
@DrW1ne 11 ай бұрын
I watched it in x20, cool btw.
@Zahardnik3
@Zahardnik3 7 ай бұрын
Thanks!
@dev-worm
@dev-worm 7 ай бұрын
you're an absolute legend! thank you so much!
@DrW1ne
@DrW1ne 11 ай бұрын
Can u make melee fight aimations tutorial like mortal cmbat.
@dev-worm
@dev-worm 11 ай бұрын
ill look into it soon!
@DrW1ne
@DrW1ne 11 ай бұрын
@dev-worm I tried to make a mortal combat but with swords, and I'm stuck on detecting combo and playing the right animation with normal transition.
@SomeBIT
@SomeBIT Ай бұрын
Great code! But idk how to access an item later to drag and drop it into different slots
@dev-worm
@dev-worm Ай бұрын
I am actually currently working on a updated inventory system which will include that!! It will be the crafting/building game series! With will be coming out very soon! And I think it will be a huge help to you!
@shrippie-4214
@shrippie-4214 5 ай бұрын
Mistake I made while programming was naming the ready function "func ready()" lol I was like why is not being called
@prueee7856
@prueee7856 5 ай бұрын
Bro, i searched for the same mistake for like 2h. Thank u sir!
@lycoon_
@lycoon_ 3 ай бұрын
Thank you, I was stuck 😭😭😭😭
@luckylovely7782
@luckylovely7782 10 ай бұрын
i learn ue5 for 3d game, and godot for 2d game. godot is easy and friendly 🤣🤣. Thanks
@5b65ed7
@5b65ed7 8 ай бұрын
Could you please upload the inventory images? They have not been added to the description
@chal_the_chalk
@chal_the_chalk 9 ай бұрын
Does this work on godot 3? Cuz im too far gone to use godot 4 so uhh... Ye
@dev-worm
@dev-worm 9 ай бұрын
ah im sorry this doesnt work in Godot 4... inventorys in Godot 3 are gonna be a little more complex!
@lucasyoutubeplay921
@lucasyoutubeplay921 3 ай бұрын
good video! How can I make sure that when I select it in the inventory, the apple is removed from the inventory and regenerates life?
@Watfell
@Watfell 10 ай бұрын
21:42 I have problem that my apples won't show and I can't figure out what could cause the problem
@RXBeetle
@RXBeetle 9 ай бұрын
Same here, but I can't find any errors. Have you solved this yet?
@rsutrainferno
@rsutrainferno 9 ай бұрын
I managed to fix my issue, somehow i got the inventory and inventory item resources mixed up. Not sure if it was a godot issue because my apple was somehow made using the player inventory resource. I just remade my resources and it fixed the issue
@LawlessNate
@LawlessNate 6 ай бұрын
8:25 why are you putting this under _process(delta):? Doesn't that make the game run this check every frame of the game? That seems like a needless waste of resources to have the game checking each frame to see if the inventory menu key is pressed instead of just making it a func _input(event): which doesn't react until the correspondingly scripted input is provided.
@dev-worm
@dev-worm 6 ай бұрын
yes you are correct! that would make a little bit more sense lol, sorry I shouldve caught that!
@HippocritterXD
@HippocritterXD 11 ай бұрын
HELL YEAH LETS GOOO!
@dev-worm
@dev-worm 11 ай бұрын
part 2 is coming tomorrow!! I hope the tutorials are able to help you out @HippocritterXD
@HippocritterXD
@HippocritterXD 11 ай бұрын
@@dev-worm most definitely, I get very excited when you upload a new episode. You are a great teacher
@jeremiahaemile2008
@jeremiahaemile2008 11 ай бұрын
Bro i write chapters to video how to animated tiles in godot copy it and paste it in description and the video will chapter
@jeremiahaemile2008
@jeremiahaemile2008 11 ай бұрын
Chapters of video how to animated tiles in Godot Intro 0:00 Edit size screen 0:13 Making tilemap 1:03 The tutorial 2:05 Final look or the result 4:52 Outro 5:05
@StarlightDX
@StarlightDX 11 ай бұрын
By the way, Y sorting and the hud seem to not mix, the hud is going behind all the trees, I hope this gets fixed in the next video.
@blakefarnsworth
@blakefarnsworth 10 ай бұрын
At 23:10 instead of making a Center Container and Panel, couldn't you go to Offset and unselect Centered?
@AmongGhosts
@AmongGhosts 7 ай бұрын
I don't have the option to pick resource from the inheritance search when trying to add a script.
@dev-worm
@dev-worm 7 ай бұрын
Ive never seen that happen before.. thats weird.. sorry to hear that, did you try restarting the engine maybe?
@tylerstokes8698
@tylerstokes8698 7 ай бұрын
Rebooting the program/project fixed it for me. InvItem didn't show up before hand and now it does. Thanks! ​@@dev-worm
@Draconicgames207
@Draconicgames207 6 ай бұрын
where is the link to the textures? they arent in the description
@JasonEllingsworth
@JasonEllingsworth 11 ай бұрын
OK so how about if an item is going to occupy multiple places in the grid with different sizes/shapes like Diablo?
@alvarocordovapalomino885
@alvarocordovapalomino885 8 ай бұрын
Buen tuto
@BagasRisang-hu8zl
@BagasRisang-hu8zl Ай бұрын
How do you keep the inventory texture from distorting if enlarged?
@HippocritterXD
@HippocritterXD 11 ай бұрын
another great tutorial, but i have one problem i cant solve. When i start the game, my inventory is already showing and the apples wont show in the inventory. and i dont know what i missed. i rewatch the video a few times now. if someone can show me what i did wrong it would be a great help
@Your_Code_Steps
@Your_Code_Steps 6 ай бұрын
Hello I have a problom displaying the item can I please get the whole code to see where is my problem
@katiescape
@katiescape 3 ай бұрын
Inventory time \o/
@dev-worm
@dev-worm 3 ай бұрын
goodluck!! if you need any help just let me know!
@ОЛДЫ-ОбществоЛюбителейДоистори
@ОЛДЫ-ОбществоЛюбителейДоистори 10 ай бұрын
nice
@SquidwardProfilePic
@SquidwardProfilePic 18 күн бұрын
I’m getting an error at 18:27, it says “GDScriptNativeClass” cannot be assigned to a variable of type “Texture2D” Anyone else have this issue?
@mylainedejean4951
@mylainedejean4951 6 ай бұрын
Hi, this system can be added for a character sheet (equipement, stat...) or this is another method for this? (sorry for my english is'nt my native langage.)
@ssneakyandfriends1626
@ssneakyandfriends1626 6 ай бұрын
-hey, i'm making a game where the character rotated according to the mouse, anyway i can not have the UI rotate with the character.- Edit: turns out just throw a canvas layer on to the player character.
@dev-worm
@dev-worm 5 ай бұрын
glad you figured it out! happy to hear!
@AxolotelDev
@AxolotelDev 5 күн бұрын
Its giving me a error message on the inv_ui.gd part on for i in range(min(inv.items.size(), slots.size())): its saying: "Invalid access to property or key 'items' on a base object of type 'null instance'." dose anyone know why?
@samaydelotte1187
@samaydelotte1187 2 ай бұрын
I ran into trouble in the inv_IU_slot.gb around 18:24. Specifically this line item_visual.texture = item.texture. The error reads Invalid get index 'texture' (on base: 'Nil'). Anyone else run into this?
@Ocdib
@Ocdib 11 ай бұрын
Quick question: Why did you add the panel @ 11:36, and then make its alpha value invisible, when you could just use a sprite without a panel behind it. I'd love to understand what panels do. Thanks!
@JasonEllingsworth
@JasonEllingsworth 11 ай бұрын
I am still very new to all of this, but in unity, UI elements were their own thing that interacted with each other, and maybe godot is like that where you need to use these green UI nodes so they play nicely together.
@the_oppa7v719
@the_oppa7v719 11 ай бұрын
YEEEEEEES
@ClayS04
@ClayS04 3 ай бұрын
im 90% sure u never show where to declare the visable var so nothing works past the 8 min mark. or im stupid idk
@yungapplemoose735
@yungapplemoose735 3 ай бұрын
visable is something godot uses, u dont declare it
@animeguidance2531
@animeguidance2531 11 ай бұрын
More tutorial 😊😊
@dev-worm
@dev-worm 11 ай бұрын
part 2 for the inventory is coming really really soon!
@animeguidance2531
@animeguidance2531 11 ай бұрын
​@@dev-wormLOOKING FOR TO IT😊
@Gameharmony-ew4st
@Gameharmony-ew4st 10 ай бұрын
Will ut work on godot 3.5?
@ManaTrooo
@ManaTrooo 11 ай бұрын
is it possible to store diffrent types in the array , i wanted to make diffrent classes for diffrent item types, like usable and consumable, now i just gave them a enum , but would prefer classes, could also not figure out how i cam use superclass and subclasses , so o can just put the superclass in the array but with the advantages of subclasses
@AverageNeovimEnjoyer
@AverageNeovimEnjoyer Ай бұрын
Can you ZIP all your assets and then upload it on itch? It's a bit tedious to download every image individually? Thanks in advance!
@dev-worm
@dev-worm Ай бұрын
yes i’ll go work on that now and get it fixed for this and all the future ones as well i apologize!
@AverageNeovimEnjoyer
@AverageNeovimEnjoyer Ай бұрын
@@dev-worm No problem!
@Presidenteof
@Presidenteof 8 ай бұрын
É a mesma coisa para o 3d?
@stiergaming
@stiergaming 7 ай бұрын
The inventory slots keep overlapping when i instantiate my slots into the gridcontainer for my inventory background what do i do?
@michurzadzi9033
@michurzadzi9033 2 ай бұрын
What?
@topone-x6x
@topone-x6x 9 күн бұрын
please make a game surfuful godot3
@gutierrezhernandezjorge2a874
@gutierrezhernandezjorge2a874 8 ай бұрын
Solo puedo decir algo, no entiendo que dice pero me puede dar una idea y espero me sirva
@ematics.
@ematics. 11 ай бұрын
i am getting this error (Export type can only be built-in, a resource, or an enum.) when i am trying to make inventory resource pls help :(
@dev-worm
@dev-worm 11 ай бұрын
save and then reload the godot program and see if that works.. sometimes I have to do that and it works.
@ematics.
@ematics. 10 ай бұрын
Thank you so much I will definitely try it 😀
@ali_gd_0161
@ali_gd_0161 10 ай бұрын
The way he says: "srot" instead of slot 😂
@dev-worm
@dev-worm 10 ай бұрын
do i actually say it like that??? lol
@jeremiahaemile2008
@jeremiahaemile2008 11 ай бұрын
Dev_worm you listen to news brackeys start to learn Godot and there's probality to make course for it Be careful there will be comptition😂😂
@destintonio4403
@destintonio4403 8 ай бұрын
Alright i'm wondering if anyone knows what is wrong, in the inv_UI_slot script i keep getting a error "Invalid set index 'visable' (on base: 'Sprite2D') with value of type 'bool'. my code: extends Panel @onready var item_visual: Sprite2D = $CenterContainer/Panel/item_display func update(item: InvItem): if !item: item_visual.visible = false else: item_visual.visable = true item_visual.texture = item.texture
@destintonio4403
@destintonio4403 8 ай бұрын
it was a typo lol i spelled visible visable
@Mooke-je7sx
@Mooke-je7sx 2 ай бұрын
@@destintonio4403 VERY late but you SAVED ME, thank you
@swampshack1018
@swampshack1018 6 ай бұрын
11:26
How to Create a INVENTORY in Godot 4 (part 2)
22:11
DevWorm
Рет қаралды 24 М.
Worst flight ever
00:55
Adam W
Рет қаралды 39 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 11 МЛН
когда не обедаешь в школе // EVA mash
00:51
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 2 МЛН
I Made My First Game in Godot in 3 Weeks...
26:21
Jack Sather
Рет қаралды 378 М.
I made a game using Godot for the first time
7:35
shawcat
Рет қаралды 1,2 МЛН
Immersive Sim in Godot 4: COGITO - Overview
8:22
Philip D
Рет қаралды 42 М.
Basics Of Multiplayer In Godot 4!
1:16:33
FinePointCGI
Рет қаралды 102 М.
choosing a game engine is easy, actually
15:08
samyam
Рет қаралды 512 М.
My Experience Moving to Godot from Unity
16:54
DarkDax
Рет қаралды 28 М.
Worst flight ever
00:55
Adam W
Рет қаралды 39 МЛН