Help With Selecting Checkers Game Tile


I am creating a checkers game for a computer graphics class. I created a bunch of meshes that form a checkerboard. My next step is making all of the meshes clickable so that I can click a tile and eventually move a checker piece.

Below is my playground:

Any help with this would be appreciated! I’m also trying to think of a way to keep track of which tile the checker pieces are on, so if anyone has ideas for that I would appreciate it!.

Welcome! You just need give every box a new name.

1 Like


Thank you! That works great. Now that I can ID the blocks, is there an efficient way to check whether or not I’m on a black tile?

Thanks so much for your help!

You have created two materials for this. So you just need get the material of the mesh.

console.log( );