I am trying to make a perimeter game for my math class.
My idea is to create a sprite and use a repeat loop to spawn it across an image which is a grid.
The sprite has two frames one white and one a different colour.
When you click the sprite it changes to the colour frame.
I can spawn the sprites but the problem comes when I try to count all the perimeter squares only.
I just want know how not to count the square if it is surrounded by another square on all 4 sides.
I just want to count the squares on the outside of the shape.
Thank you for your help