Hello guys!
I'm trying to create a "hand of cards". What I'm trying to do is a group of cards that can be dragged from point A to point B. Everything is working right except that when I start dragging a card, the cards next to it are on top of it. Can someone help?
drive.google.com/open
You need to change the Z-Order when dragging a card and when dropping a card back to the hand:
humm, yes, but I forgot to mention that I can not prevent the card on the side only taking the place of the other when it is discarded, or only after the card draws near the others. As in the attached image. Any idea?
Develop games in your browser. Powerful, performant & highly capable.
I added a global boolean to check if the player is dragging a card and placed the 'is dragging' event above the card sorting:
very good. It works perfectly. Many thanks for the help =)