DEVLOG #1: I made A Drag and Drop System So You Don't Have To!
Hi hello hi, my draggable little wanderers! Drop target Solar here! (I will eat you all.)
My most recent game: 'Spellbound' used a tool that I hadn't created yet! I needed a drag and drop system that:
- Let me drag symbols into slots
- Send custom data like "element" : "fire"
- Had clean visuals and felt *good* to use!
So I ripped the skin off and rejigged the code a bit and NOW we have a clean, flexible and lightweight drag and drop system for UI elements!
It was a real pain to code, but I coded it to be as simple as possible for all you lovely people!
So, What am I Hiding From You?
In the zip file, there's:
- Draggable.gd + DropTarget.gd scripts
- A global DragManager.gd singleton
- Signal based logic so you can plug it into anything!
- A simple demo scene (that works, which is a surprise!!)
- And yes, after much tribulation, the drag preview DOES in fact follow the cursor!! (It's a long story :'/)
Why Release This?
Well, I made it! Perhaps it will be useful and convenient for some of you! I'm all about bringing joy and saving time (for you, I am stuck in this box, forever coding games)!
If you check out the cover of the tool, you'll see the amazing art I made of a fearful draggable object and a giant cursor hand. That alone might be worth the £1. :D
Check it out here:
-> [Link]
Thanks for reading, and happy dragging!!
Files
Get Drag and Drop Tool
Drag and Drop Tool
A plug-and-play drag and drop UI system for Godot 4 - Clean, customisable and ready for puzzles, inventories and more!
Status | Released |
Category | Tool |
Author | TheSunThatWanders |
Tags | drag_and_drop, gamedev, Godot, godot-4, inventory, plugin, tool, User Interface (UI) |
Leave a comment
Log in with itch.io to leave a comment.