I'm trying to get a simple drag and drop mechanism to work, but without success.
I have a grid of elements and I'd like to be able to drag one element on another.
This is what I have so far:
When the game starts, I create a grid of elements dynamically (this is my start scene):
Each CardContainer should be able to be draged and droped an each other CardContainer. This is the code and how it looks like, when the game starts:
Any idea what I am doing wrong?
Many thanks in advance .