Hello.
I'm making a tetris game. And each time in a while , i got a spwaner creating "active" blocks to make pieces.
But i need to keep track of each of the 4 blocks created while they are active (not lay on ground or inactive pieces) with unique IDs ...?
How can i do that ?
I know a bit how to use the pick by UID, or use the Sprite(UID).X .Y things etc... to act on them.
But how do i store their IDs when the piece is created ?
like i want to know exactly the UID of block created first, the second one, third, and last one. (all pieces got 4 blocks)
Sorry if it' a noobish question. Searched the manual and forums, haven't found exactly.
In other words : how can i store the UID of a created instance in a variable ? where's this option ?