So im programming a two player Chess game as my first Construct 2 game as practice, and im wondering this:
So if I select a Rook on, say, e4, I want the squares e5, e6, e7, e8, d4, c4, b4, a4, e3, e2, e1, f4, g4, and h4 to light up. I already have objects with selection animations on each of the squares for tiles, but how in the world would I program this for every piece's specific movements on every spot on the board? Is there some way to group the logic into a single algorithm applied to the given piece?