Currently i'm using the rexrainbow plugin SLGMovement to move my chess pieces, but if somebody has a better working solution for this, I would be happy to try something else.
I am putting together a chess game. When I choose a piece to move, it currently can move in any direction.
I need to restrict its movement based on type of piece. A pawn for instance can only move up and down on the Y-axis.
Perhaps I need to create new (invisible) tiles either side of the selected tile and set them as blocked tiles so they can't be used when finding the movement path?
Perhaps I need to use the "Chess Pick Neighbour" function in the 2 and 4 directions - but I don't know how to filter the movement areas to exclude specific tiles?
I have attached my capx file. As you can see I have made a lot of progress since I began.
You can now take turns at moving pieces, and they animate in the direction they are travelling.
I only have two roadblocks at the moment that I need help with, which is the above filtering issue so I can define the paths for each type of piece, AND to enable diagonal movement. Currently they only move 4-way directions, but I need them to move 8-ways on the grid.
Any help much appreciated.
Thanks