Godot 4.4 Drag & Drop Inventory Items //// Make a 2D AARPG in Godot 4 // E66

Опубликовано: 14 Май 2026
на канале: Michael Games
4,848
215

In this tutorial we will upgrade our inventory screen to allow the player to drag and drop items to re-organize the mess.

Topics Covered: button events, mouse_entered, mouse_exited, duplicate()

New Assets Used:
N/A

Asset Download Page: https://michaelgames.itch.io/2d-actio...

--------------------
Chapters
--------------------
00:00 Intro
00:22 Overview
02:51 InventorySlotUI change overview
04:44 New variables
06:37 Update _ready() function
09:24 on_button_down function
11:47 Add some item drops to the test level
12:17 Make drag texture follow mouse
13:59 Address drag visual issues & End drag state
15:12 Dynamic drag/fade visual effect
17:15 outside_drag_threshold() function
19:00 Center drag texture on mouse position
19:43 Update item_pressed function
21:32 InventoryUI class updates
23:04 Connect to signals connect_item_signals() function
27:41 Print output to debug signal connections
29:00 On item entered, exited & dropped functions
32:21 InventoryData swap_items_by_index() function
36:54 update inventory on item swap
37:57 BUG! Can't drag/drop on "previous" items in inventory
40:31 Outro
41:50 Thank you Patreon supporters!!!
--------------------

Series Playlist:    • Make a 2D Action & Adventure RPG in Godot ...  

GitHub Repo: https://github.com/michaelmalaska/aar...
AARPG Trello Board: https://trello.com/b/9PlGOAZv/aarpg-t...

Join our discord community!
Discord:   / discord  

Become a Patreon member to get exclusive access to Michael, and more: https://www.patreon.com/c/user?u=2630...