Hi all,
I have a picture of a table consists of equal white squares
I also have a black square, whose size is equal to those in the table, that sticks to the cursor. The black square will snap to the grid above.
I want that a black square is spawned whenever I click on a square in the table. My previous solution is to create a lot of sprites that look like a black square and place each of them in where users choose to.
I would like to take a different approach to the problem, using instances. Now when I click, the new square will also stick to the mouse, while I want it to stay in the background to mark where user has clicked.
I have read about UID, IID,
this thread but I have not found anything promising.
Can you please help?
Thank you very much