Drag & Drop Inventory Using Resources In Under 25 minutes || Part 1 Godot 4.2

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 46

  • @CodingQuests
    @CodingQuests  10 місяців тому

    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

    • @403gtfo
      @403gtfo 10 місяців тому

      (Ignore last comment... I was doing it backwards derp)

  • @alexi2706
    @alexi2706 9 місяців тому +16

    You should add a preview of how the end result will look, feel, work...

  • @FilenameNULL415
    @FilenameNULL415 10 місяців тому +4

    Pretty useful for adventure game

  • @MichaelHeuterkes
    @MichaelHeuterkes 6 місяців тому +4

    Thanks. This tutorial saved me a lot of time.

  • @Dotdot0
    @Dotdot0 10 місяців тому +2

    Thank you so much your videos have always helped me a lot!!

  • @grzegorzpedrycz2630
    @grzegorzpedrycz2630 8 місяців тому +1

    Such a great piece of knowledge ! thanks :)

  • @ybra
    @ybra 8 місяців тому +1

    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.

  • @gabrielchabot5315
    @gabrielchabot5315 10 місяців тому +1

    Hello, thanks for the video. Yes, I'd like see an equipment section.

  • @marcosmachado6844
    @marcosmachado6844 10 місяців тому +1

    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?

  • @noloveforu
    @noloveforu 6 місяців тому

    One of the best follow through video!

  • @FillanEngram
    @FillanEngram 6 місяців тому +1

    I'd love to see the equipment section and maybe an hotbar section :D

  • @ybra
    @ybra 8 місяців тому +5

    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?

  • @avivliberman2373
    @avivliberman2373 23 дні тому +1

    Where can I find part 2?

  • @andrewgrinn3435
    @andrewgrinn3435 10 місяців тому +1

    Thank you

  • @darkhunter777
    @darkhunter777 4 місяці тому +2

    gOod, but need more acceleration, center mass, braking distances 😁

  • @redshepard5306
    @redshepard5306 9 місяців тому +2

    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?

    • @CodingQuests
      @CodingQuests  9 місяців тому

      It's like get node, but finds anything in that scene with the name

  • @KarlSimonOscarFrisk
    @KarlSimonOscarFrisk 7 місяців тому +1

    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.

  • @ShogunYotsimitsu
    @ShogunYotsimitsu 7 місяців тому +1

    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!!!

    • @CodingQuests
      @CodingQuests  7 місяців тому

      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.

  • @fevryslea
    @fevryslea 5 місяців тому +1

    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?

    • @CodingQuests
      @CodingQuests  5 місяців тому

      youd have to change a lot of the logic, specifically for the candropdata function

  • @KillerAuzzie
    @KillerAuzzie 10 місяців тому +1

    Hey man loving your godot content
    also your discord link might be expired?

  • @mudinlange
    @mudinlange 8 місяців тому +1

    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...

    • @CodingQuests
      @CodingQuests  8 місяців тому

      you would use an int as a counter for the "stack"

  • @reesensix9755
    @reesensix9755 8 місяців тому +1

    Thank you very much

  • @olmrgreen1904
    @olmrgreen1904 10 місяців тому +1

    nice

  • @catlifeplus2231
    @catlifeplus2231 4 місяці тому

    at 12:33, when I press play. I get an error "Cannot call method "add_child" on null value."

  • @WalkerRileyMC
    @WalkerRileyMC 6 місяців тому

    how about an option to remove items from the inventory?

    • @CodingQuests
      @CodingQuests  6 місяців тому +1

      You'd have to create that yourself 😉

  • @jamesconwell2767
    @jamesconwell2767 4 місяці тому +1

    Anyway to get a subregion of the texture2d using this method

    • @jamesconwell2767
      @jamesconwell2767 4 місяці тому

      Found it, you need to use an atlas texture then set a sub region from there

  • @718Outdoors
    @718Outdoors 9 місяців тому +3

    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)

    • @CodingQuests
      @CodingQuests  9 місяців тому +3

      You might not have created the class properly

    • @718Outdoors
      @718Outdoors 9 місяців тому +2

      That was it...extra underscore before init@@CodingQuests

    • @jiro4559
      @jiro4559 2 місяці тому

      @@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