Newbie to Godot here. My idea is to create a deck building game, inspired by Slay The Spire or Across the Obelisk. I have come to a problem that I can not seem to find the answer.

So, the card object is complex: it consists of multiple things (textures for card frame and card front images, texts for card name and card category). Something like MtG type of a card. The issue is that the cards should also be draggable.

I found tutorials and examples online how to implement drag and drop in Godot, but they always show how to move a simple object like a sprite with one texture or a colored rect. No idea how to move an object that has a lot of children inside. My attempts to drag containers or controls were not successful.

Is there a way how to do it? Or is it better to preload all the textures and texts for the card and 'combine' them in one texture to drag? If so, how to do it correctly?

  • \$\begingroup\$ Welcome. It helps if you could include a specific, re-creatable example of what you're trying to move. As you said, there's info out there for Godot drop & drag - if the common solutions aren't working, then seeing exactly what you're trying to move will focus answers on addressing that rather than rehashing the simple scenarios you've seen that don't work for your situation. \$\endgroup\$
    – Pikalek
    Oct 2 at 18:49
  • 2
    \$\begingroup\$ What was the issue you encountered while dragging a Container? \$\endgroup\$
    – Theraot
    Oct 2 at 21:32


You must log in to answer this question.

Browse other questions tagged .