How to Drag and Drop a 2D Sprite in Godot 4

preview_player
Показать описание
How to Drag and Drop a Sprite in Godot 4

Greetings, in this Godot 4 tutorial we shall be looking at how to drag and drop an object in Godot.

We will also be including an offset for the dragging and dropping of the 2D sprite to make it more smooth. Adding an mouse offset to the dragging and dropping withh make a smooth drag N drop effect in Godot.

Be sure to subscribe for more Godot tutorials if this Godot tutorial on how to drag and drop an object in Godot 4 was useful!

Thanks for watching this Godot 4 tutorial on how to drag and drop a sprite in Godot.

How to Drag and Drop a Sprite in Godot 4
Комментарии
Автор

FINALLLYYYY thank you so much this video is exactly what I have been looking for!!

ngllvy
Автор

Can you make a tutorial related to this on how to create a spot for the sprite to be dropped into and it snaps it into place?

Legion_YT_
Автор

Thank you so much, this helped me so so so much!! ❤

just a question, though:
What is the best way to replicate this over and over? I'm trying to make a dress up game, so I need to be able to drag several clothes and items onto the character.

Do I have to repeat these steps over and over or is there a better way?

TheCatMurgatroyd
Автор

Great video! I have a question: this works perfectly in its own scene but when I instantiate it into my main scene it won't drag and drop anymore. Do you know why?

Erin_Brume
Автор

Great video its a Shane its not more popular

XavierDeHarde