Check out Zenva's Godot courses including their new Godot Open World learning pathway: academy.zenva.com/cart/?add-to-cart=1319205&coupon_code=partner-codingquests-2024&UA-cam& The first 50 of you will get 20% off
This is very helpful, thanks! I could follow along as someone who is totally new at this and I got it working. But I think it could have been nice with some more explanation of what you where trying to do with some of the steps. Especially at the end with the drag and drop thing, it got pretty complicated and I'm not sure what each part is doing.
Great video, amazing content as always. I found out that there's not much good material out there like your's. I was wondering if you could you make a video on Custom Tile Data, how to use it and some of it's applications?
I'm seeing a bug in this. When I drag an item, the preview appears for a split second at the left edge of the screen before it is center to the cursor. You can see it happening in your video too at 24:15. Any idea how to fix that?
This is a wonderful tutorial, thank you! I'm having problems with Godot crashing when an item goes from the main inventory -> any other enum slot -> back into the same Main inventory slot. Works fine if it gets put into any other main slot except then one it just came from. Error: Invalid get index 'type' (on base: 'Nil'). Its so frustratingly close to working, lmao.
Hello, i watched your hours long video on how to make a 2d game tutorial and i am well on my way on making my own 3d game, i just wanted to ask if you could make a video on how to interact with items in 3d , inspect them( rotate them etc) and equip them (for example a gun), and also add them to inventory. Thanks!!!
the logic is pretty similar to 2d, aside from rotating which would be slightly difference but still not too difficult. I generally take video requests in my server as its easier to have back and forth for video ideas.
hey, nice tutorial! do you know how can I make a "stack" property using resources? I was doing something similar with my inventory UI, made a system to track the item stack inside of it, but as my items are all resources, when I update the "arrow.stack" it updates all arrow.stack of the game...
12:16 getting error (GUI.gd) "Too few arguments for new() call, expecting 2, got 0:" func _ready(): for i in InvSize: var slot := InventorySlot.new() slot.init(ItemData.Type.MAIN, Vector2(64, 64)) $Inv.add_child(slot)
Check out Zenva's Godot courses including their new Godot Open World learning pathway:
academy.zenva.com/cart/?add-to-cart=1319205&coupon_code=partner-codingquests-2024&UA-cam&
The first 50 of you will get 20% off
(Ignore last comment... I was doing it backwards derp)
You should add a preview of how the end result will look, feel, work...
Pretty useful for adventure game
Thanks. This tutorial saved me a lot of time.
Great to hear!
Thank you so much your videos have always helped me a lot!!
Such a great piece of knowledge ! thanks :)
This is very helpful, thanks! I could follow along as someone who is totally new at this and I got it working. But I think it could have been nice with some more explanation of what you where trying to do with some of the steps. Especially at the end with the drag and drop thing, it got pretty complicated and I'm not sure what each part is doing.
yes you can!
Hello, thanks for the video. Yes, I'd like see an equipment section.
Great video, amazing content as always. I found out that there's not much good material out there like your's. I was wondering if you could you make a video on Custom Tile Data, how to use it and some of it's applications?
One of the best follow through video!
I'd love to see the equipment section and maybe an hotbar section :D
I'm seeing a bug in this. When I drag an item, the preview appears for a split second at the left edge of the screen before it is center to the cursor. You can see it happening in your video too at 24:15. Any idea how to fix that?
I'm getting the same issue - did you ever find a fix?
same issue here
me three lol
Where can I find part 2?
Thank you
gOod, but need more acceleration, center mass, braking distances 😁
still new at this, could you explain the syntax with the % signs at 17:37? i get what the function is for but how does it work?
It's like get node, but finds anything in that scene with the name
This is a wonderful tutorial, thank you! I'm having problems with Godot crashing when an item goes from the main inventory -> any other enum slot -> back into the same Main inventory slot. Works fine if it gets put into any other main slot except then one it just came from.
Error:
Invalid get index 'type' (on base: 'Nil').
Its so frustratingly close to working, lmao.
Hello, i watched your hours long video on how to make a 2d game tutorial and i am well on my way on making my own 3d game, i just wanted to ask if you could make a video on how to interact with items in 3d , inspect them( rotate them etc) and equip them (for example a gun), and also add them to inventory. Thanks!!!
the logic is pretty similar to 2d, aside from rotating which would be slightly difference but still not too difficult. I generally take video requests in my server as its easier to have back and forth for video ideas.
if you wanted to make it that if you dragged the item outside the inventory UI it would clear the slot. How would you do that?
youd have to change a lot of the logic, specifically for the candropdata function
Hey man loving your godot content
also your discord link might be expired?
its not
hey, nice tutorial!
do you know how can I make a "stack" property using resources?
I was doing something similar with my inventory UI, made a system to track the item stack inside of it, but as my items are all resources, when I update the "arrow.stack" it updates all arrow.stack of the game...
you would use an int as a counter for the "stack"
Thank you very much
nice
at 12:33, when I press play. I get an error "Cannot call method "add_child" on null value."
me too :(
Dirty program... Too
how about an option to remove items from the inventory?
You'd have to create that yourself 😉
Anyway to get a subregion of the texture2d using this method
Found it, you need to use an atlas texture then set a sub region from there
12:16 getting error (GUI.gd) "Too few arguments for new() call, expecting 2, got 0:"
func _ready():
for i in InvSize:
var slot := InventorySlot.new()
slot.init(ItemData.Type.MAIN, Vector2(64, 64))
$Inv.add_child(slot)
You might not have created the class properly
That was it...extra underscore before init@@CodingQuests
@@718Outdoors Yes, calling that function init was a bad idea, it could've had another name, but I thought it was the same as _init, and it wasn't