Drag and drop in Godot part 1, UI Control nodes

  Рет қаралды 14,394

ExploreGameDev

ExploreGameDev

Күн бұрын

Пікірлер: 49
@rightbraingames7418
@rightbraingames7418 3 жыл бұрын
Awesome Tutorial! Thank you for sharing your knowledge!
@ExploreGameDev
@ExploreGameDev 3 жыл бұрын
Hey thanks, glad you found it useful.
@ExploreGameDev
@ExploreGameDev 3 жыл бұрын
Let me know if you would like a more advanced example of drag and drop. Happy to provide that. Cheers
@gavinbarnard2220
@gavinbarnard2220 2 жыл бұрын
yes please
@a_soulspark
@a_soulspark Жыл бұрын
just a heads up, in Godot 4 the get_drag_data() function was renamed to _get_drag_data() (notice the underscore!) hopefully will save some people from headaches ^^
@alpacapico
@alpacapico Жыл бұрын
just figured this out on my own after 15ish minutes of thinking I was going crazy -_- as an addendum to this, you have to implement BOTH _get_drag_data() and _drop_data() in order for it to even detect if you're trying to drop something on it
@LunaticEdit
@LunaticEdit Жыл бұрын
Thanks for this. I now have tibia style window dragging and reordering! If you're like me and you have a parent class for all draggable windows, you can load the parent class with load(), set the window title and size, and bam you have a great preview window for the drag as well!
@ExploreGameDev
@ExploreGameDev Жыл бұрын
hey, you are welcome. Thanks for the tip on utilizing parent classes. I've been thinking of doing a GDScript video on just object oriented topics.
@LunaticEdit
@LunaticEdit Жыл бұрын
@@ExploreGameDev Good idea. A friend and I are doing an online game similar to Tibia and we utilize OO scenes a whole lot. It makes things a thousand times easier to manage and keeps our code from getting complex. Especially when you have networking involved.
@Foxerski
@Foxerski 3 жыл бұрын
This video helped me with my game, thanks!
@ExploreGameDev
@ExploreGameDev 3 жыл бұрын
Hey thanks, glad it helped.
@leo_mars
@leo_mars 2 жыл бұрын
This code snippet is awesome, I could copy paste it to save time.
@papazedyt4846
@papazedyt4846 2 жыл бұрын
This is exactly what i was looking for! Many thanks man, and please prepare more of drag and drop tutorials :)
@ExploreGameDev
@ExploreGameDev 2 жыл бұрын
Thanks, really glad you found it useful. I do have a part 2 planed, subscribe to get notified :)
@ExploreGameDev
@ExploreGameDev 2 жыл бұрын
Let me know if there are specific things about drag and drop you'd like to see
@papazedyt4846
@papazedyt4846 2 жыл бұрын
@@ExploreGameDev Im doing card game right now, but im newbie to Godot. So another vid with card viewing and positioning on panel (depends how cards we have) and dragging would be helpful. Thanks and good luck with ur channel
@ExploreGameDev
@ExploreGameDev 2 жыл бұрын
@@papazedyt4846 Very cool, Godot is a great game engine for that. The next vid will add dropping into indexed positions which could be helpful for a card game. In the meantime Game Dev Center has a video that might also apply kzbin.info/www/bejne/mou8naqjd6itn68
@papazedyt4846
@papazedyt4846 2 жыл бұрын
@@ExploreGameDev already viewed :) cant wait for yours new vid, cheers!
@gavinbarnard2220
@gavinbarnard2220 2 жыл бұрын
Thank you!!
@ExploreGameDev
@ExploreGameDev 2 жыл бұрын
You are welcome, glad you found it useful
@mdlsvensson
@mdlsvensson 2 жыл бұрын
Absolutely terrific tutorial, subbed
@ExploreGameDev
@ExploreGameDev 2 жыл бұрын
thanks Wilmer
@dueddel
@dueddel 2 жыл бұрын
…aaaaaand subscribed. 😊
@mahsanmehdi
@mahsanmehdi 7 ай бұрын
very nice way of delivery, Thanks for sharing! I would appreciate other tutorial it with conditions implementations if the element is not dropped on required position like player leave the mouse on anywhere except the target dropped area then it should goes back to their original position thanks again
@ExploreGameDev
@ExploreGameDev 7 ай бұрын
Thanks, great ideas for future tutorials
@d.c.oculos9284
@d.c.oculos9284 Жыл бұрын
un grande, gracias
@josmarpinheiro2589
@josmarpinheiro2589 2 жыл бұрын
Top vídeo , playlist godot please.
@ExploreGameDev
@ExploreGameDev 2 жыл бұрын
thanks for the reminder, I created a Godot tutorials playlist
@DrNabeel20
@DrNabeel20 Жыл бұрын
Thanks ❤️
@ExploreGameDev
@ExploreGameDev Жыл бұрын
You are welcome, glad you found value in this video!
@timetorelaxfocus9642
@timetorelaxfocus9642 2 жыл бұрын
Thanks
@ExploreGameDev
@ExploreGameDev 2 жыл бұрын
You are welcome
@hannahrogers1946
@hannahrogers1946 4 ай бұрын
This is so useful, thanks! However, I'm not able to access the second demo in this video from github. I was really hoping to be able to play around with it and experiment to make sure I'm understanding it to make something like Curse of the Golden Idol, (which is dragging and dropping answers in a specific order to win) Am I just not accessing the files correctly?
@ExploreGameDev
@ExploreGameDev 4 ай бұрын
Hi, very cool, not played Curse of the Golden Idol, but it looks fun. Were these the files you were looking for? github.com/exploregamedev/Godot-demos/tree/main/DragAndDrop-part_2 You should be able to use that dir (with its project.godot) as a Godot project.
@hannahrogers1946
@hannahrogers1946 4 ай бұрын
@@ExploreGameDev When I open that it takes me a noughts and crosses game which I assume is what you use in the next video? I was looking for the example shown at 07:40
@ExploreGameDev
@ExploreGameDev 4 ай бұрын
@@hannahrogers1946 oh, sorry for the confusion, I should have labeled that better. For the code starting at 7:40, look to the `demo-final` folder of github.com/exploregamedev/Godot-demos/tree/main/IntroToDragAndDrop-part_1
@stillprophet7529
@stillprophet7529 Жыл бұрын
Amazing video, just have one problem. I have set it up the same way you have (as far as i can tell) and it works but when i drag something onto the target container it seems like its getting "blocked" by the margincontainer and vboxcontainer inside it. It will only let me drop the node in the area around the outside that isnt "blocked" by the children
@ExploreGameDev
@ExploreGameDev Жыл бұрын
hmm, have you checked the mouse filter settings for all controls "above" the target container. They should all be set to "Ignore" (MOUSE_FILTER_IGNORE). (discussed here: docs.godotengine.org/en/stable/classes/class_control.html)
@stillprophet7529
@stillprophet7529 Жыл бұрын
@@ExploreGameDev ah ofcourse, I knew there was something I missed, my bad, thank you!
@ExploreGameDev
@ExploreGameDev Жыл бұрын
@@stillprophet7529 great, glad that worked out.
@infiniteproduction1906
@infiniteproduction1906 5 ай бұрын
Pretty good except for one thing: starting from a full working sample unfortunately doesn't show how to set-up all the stuff step by step while being able to test code along the way.
@ExploreGameDev
@ExploreGameDev 5 ай бұрын
Noted, thanks for the feedback, I'll keep that in mind going forward.
@beamaybelarmino3437
@beamaybelarmino3437 2 жыл бұрын
Amazing, but i have a question sir, is it possible to change the data/values inside the button? which will come from the database specifically firebase. Thank you in advanced for answering my question.
@ExploreGameDev
@ExploreGameDev Жыл бұрын
Thanks, that's certainly possible. It would all be done in script. I've not done that myself. You might start with @FinePointCGI kzbin.info/www/bejne/Y6rFn31ueL2GmbM they've done some tutorials in that regard.
@RajanSingh-zj2eo
@RajanSingh-zj2eo 2 жыл бұрын
Can you please make a video on drag and snap to grid for isometric tilemap with touch controls not mouse. A request from a subscriber.
@ExploreGameDev
@ExploreGameDev 2 жыл бұрын
Thanks Rajan, that's a great idea for a video. I could do something like that at some point, I've not worked with touch controls before, could be interesting.
@harshsidhu51
@harshsidhu51 2 жыл бұрын
Hey , can you make basic tutorial about UI nodes . There is basically very less content about basics of control node and ui in godot . I liked ur style of explaination thats why i am requesting you .✌By the way great explaination !👏
@ExploreGameDev
@ExploreGameDev 2 жыл бұрын
That's a great suggestion Harsh, I'll add that to the queue of video's I'm working on. I agree, compared to other topics, not as much recent stuff out there for UI nodes.
Drag & drop in Godot part 2, comparing Control node and Node2D versions
12:31
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 732 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Smooth Drag N Drop: Godot Guide
9:28
Bramwell
Рет қаралды 50 М.
Beginner's Guide to Textures & Meshes in Godot 4
13:30
ExploreGameDev
Рет қаралды 68 М.
How To Create A 3D Endless Runner In Godot 4
17:35
ExploreGameDev
Рет қаралды 14 М.
How To Drag And Drop In Godot - Basic Level Explanation
6:16
6 Tips to Better Organize your Godot Projects
11:39
GDQuest
Рет қаралды 136 М.
Godot 4 - Tiled Dungeon Environment From Scratch
26:24
DevLogLogan
Рет қаралды 446 М.
Godot 4: New annotations and exports syntax in GDScript 2
8:35
ExploreGameDev
Рет қаралды 5 М.
Using Composition to Make More Scalable Games in Godot
10:13
Firebelley Games
Рет қаралды 253 М.
Intro to Godot GameDev part 1, Reviewing the drag and drop prototype
10:51
Drag and Drop Inventory System | Godot Tutorial
23:44
Game Development Center
Рет қаралды 34 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН