I am trying to create a grid layout with each cell independent for events and mouse clicks.
The teal blocks are individual sprites, but then I realized there might be a better way.
The green/black grid is just a TiledBackground.
You can use lots of sprite instances, or you can use one tilemap. It depends on what you need to do with these cells.
With both methods you should be able to detect which cell was clicked.
Hi, thanks for the reply.
Essentially, all squares have identical events once clicked, I just need the least CPU and time -consuming method to do that.
Develop games in your browser. Powerful, performant & highly capable.
Try this tutorial and see if that helps you, I am not sure but try it
https://www.scirra.com/tutorials/9423/i ... -variables