How many? Minesweeper help

I’m recreating my Minesweeper logic and am trying to make the numbers work for my game.

Is there a way for a sprite to scan the surrounding 8 sprites for mine tiles using raycast?

1 Like

If you want to use raycast, you would change the raycast starting location offset from the block. Though raycasting can be expensive if a lot of objects use them all the time all at once. I personally suggest using a list, like this: Making a 2D List