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

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024
  • Check out Zenva's Godot courses including their new Godot Open World learning pathway:
    academy.zenva....
    The first 50 of you will get 20% off
    Join my Discord: / discord
    Check out my Site: www.codingques...
    Check out my STEAM: store.steampow...
    Stalk me IRL here: / ozaki_boomer

Комментарии • 45

  • @CodingQuests
    @CodingQuests  9 месяцев назад

    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&RUclips&
    The first 50 of you will get 20% off

    • @403gtfo
      @403gtfo 9 месяцев назад

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

  • @alexi2706
    @alexi2706 8 месяцев назад +15

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

  • @Dotdot0
    @Dotdot0 9 месяцев назад +2

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

  • @FilenameNULL415
    @FilenameNULL415 9 месяцев назад +4

    Pretty useful for adventure game

  • @grzegorzpedrycz2630
    @grzegorzpedrycz2630 7 месяцев назад +1

    Such a great piece of knowledge ! thanks :)

  • @MichaelHeuterkes
    @MichaelHeuterkes 5 месяцев назад +3

    Thanks. This tutorial saved me a lot of time.

  • @marcosmachado6844
    @marcosmachado6844 9 месяцев назад +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?

  • @ybra
    @ybra 7 месяцев назад +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 9 месяцев назад +1

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

  • @noloveforu
    @noloveforu 5 месяцев назад

    One of the best follow through video!

  • @andrewgrinn3435
    @andrewgrinn3435 9 месяцев назад +1

    Thank you

  • @FillanEngram
    @FillanEngram 5 месяцев назад +1

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

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

  • @reesensix9755
    @reesensix9755 7 месяцев назад +1

    Thank you very much

  • @redshepard5306
    @redshepard5306 8 месяцев назад +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  8 месяцев назад

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

  • @darkhunter777
    @darkhunter777 3 месяца назад +2

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

  • @ybra
    @ybra 7 месяцев назад +4

    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?

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

  • @olmrgreen1904
    @olmrgreen1904 9 месяцев назад +1

    nice

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

  • @KillerAuzzie
    @KillerAuzzie 9 месяцев назад +1

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

  • @fevryslea
    @fevryslea 4 месяца назад +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  4 месяца назад

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

  • @jamesconwell2767
    @jamesconwell2767 4 месяца назад +1

    Anyway to get a subregion of the texture2d using this method

    • @jamesconwell2767
      @jamesconwell2767 3 месяца назад

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

  • @WalkerRileyMC
    @WalkerRileyMC 5 месяцев назад

    how about an option to remove items from the inventory?

    • @CodingQuests
      @CodingQuests  5 месяцев назад +1

      You'd have to create that yourself 😉

  • @catlifeplus2231
    @catlifeplus2231 3 месяца назад

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

  • @718Outdoors
    @718Outdoors 8 месяцев назад +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  8 месяцев назад +3

      You might not have created the class properly

    • @718Outdoors
      @718Outdoors 8 месяцев назад +2

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

    • @jiro4559
      @jiro4559 Месяц назад

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