I'm trying to make a simple card solitaire/patience game.
I created a sprite called 'Card' with instance variables to store suit, number, stack/column, and position inside stack.
Stacks are stored in two matrices: a 2D matrix containing indices to the cards, and a 1D matrix containing pointers with the number of cards in each stack or column.
But if I store indices to the cards as UIDs, I find no card when I use Card object condition 'select object by UID', and, if I store indices as IIDs, I always find same card object (Card #0) when I use System object condition 'Select object Card with index X'
You can take a look at my project at:here (10 Mb download)
Beware it is a 10Mb download, since it contains all images for the cards (they are needed to understand it).
(If you finally download it, you'll find useful to know the meaning of these Spanish words: Carta=>Card, Palo=>Suit, Numero=>Number, Mazo=>Stack, Columna=>Column, Fila=>Row).