How do I create a grid background with each cell independent

Get help using Construct 2

Post » Wed Mar 21, 2018 1:47 pm

Hello,
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.

Image
B
6
Posts: 19
Reputation: 293

Post » Wed Mar 21, 2018 3:58 pm

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.
B
17
S
9
G
156
Posts: 2,207
Reputation: 82,995

Post » Wed Mar 21, 2018 4:04 pm

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.
B
6
Posts: 19
Reputation: 293

Post » Wed Mar 21, 2018 4:39 pm

Tilemap
Mistakes were made.
B
60
S
30
G
132
Posts: 1,932
Reputation: 74,341

Post » Thu Mar 22, 2018 11:51 am

Try this tutorial and see if that helps you, I am not sure but try it

https://www.scirra.com/tutorials/9423/i ... -variables
B
267
S
51
G
16
Posts: 2,039
Reputation: 43,944


Return to How do I....?

Who is online

Users browsing this forum: stellko and 4 guests