Awesome Tutorial! Thank you for sharing your knowledge!
@ExploreGameDev3 жыл бұрын
Hey thanks, glad you found it useful.
@ExploreGameDev3 жыл бұрын
Let me know if you would like a more advanced example of drag and drop. Happy to provide that. Cheers
@gavinbarnard22202 жыл бұрын
yes please
@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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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.
@Foxerski3 жыл бұрын
This video helped me with my game, thanks!
@ExploreGameDev3 жыл бұрын
Hey thanks, glad it helped.
@leo_mars2 жыл бұрын
This code snippet is awesome, I could copy paste it to save time.
@papazedyt48462 жыл бұрын
This is exactly what i was looking for! Many thanks man, and please prepare more of drag and drop tutorials :)
@ExploreGameDev2 жыл бұрын
Thanks, really glad you found it useful. I do have a part 2 planed, subscribe to get notified :)
@ExploreGameDev2 жыл бұрын
Let me know if there are specific things about drag and drop you'd like to see
@papazedyt48462 жыл бұрын
@@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
@ExploreGameDev2 жыл бұрын
@@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
@papazedyt48462 жыл бұрын
@@ExploreGameDev already viewed :) cant wait for yours new vid, cheers!
@gavinbarnard22202 жыл бұрын
Thank you!!
@ExploreGameDev2 жыл бұрын
You are welcome, glad you found it useful
@mdlsvensson2 жыл бұрын
Absolutely terrific tutorial, subbed
@ExploreGameDev2 жыл бұрын
thanks Wilmer
@dueddel2 жыл бұрын
…aaaaaand subscribed. 😊
@mahsanmehdi7 ай бұрын
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
@ExploreGameDev7 ай бұрын
Thanks, great ideas for future tutorials
@d.c.oculos9284 Жыл бұрын
un grande, gracias
@josmarpinheiro25892 жыл бұрын
Top vídeo , playlist godot please.
@ExploreGameDev2 жыл бұрын
thanks for the reminder, I created a Godot tutorials playlist
@DrNabeel20 Жыл бұрын
Thanks ❤️
@ExploreGameDev Жыл бұрын
You are welcome, glad you found value in this video!
@timetorelaxfocus96422 жыл бұрын
Thanks
@ExploreGameDev2 жыл бұрын
You are welcome
@hannahrogers19464 ай бұрын
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?
@ExploreGameDev4 ай бұрын
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.
@hannahrogers19464 ай бұрын
@@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
@ExploreGameDev4 ай бұрын
@@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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@ExploreGameDev ah ofcourse, I knew there was something I missed, my bad, thank you!
@ExploreGameDev Жыл бұрын
@@stillprophet7529 great, glad that worked out.
@infiniteproduction19065 ай бұрын
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.
@ExploreGameDev5 ай бұрын
Noted, thanks for the feedback, I'll keep that in mind going forward.
@beamaybelarmino34372 жыл бұрын
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 Жыл бұрын
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-zj2eo2 жыл бұрын
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.
@ExploreGameDev2 жыл бұрын
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.
@harshsidhu512 жыл бұрын
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 !👏
@ExploreGameDev2 жыл бұрын
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.