On click activate, second click move

okay, so im still pretty new at this. im trying to build a chess game at the moment. what im wanting to do is when you click a piece. which i have as actors, it will highlight (ill figure that out later so no worries) then second click will move you to that sqaure. what i need is the scripting for the first click (will do nothing but select piece atm) then the second click to move. i have chess pices as actors and i actually have individual chess sqaures as actors too

thanks a million guys

Use a variable (a boolean or maybe a reference to the selected piece) to toggle between the modes.
There is a (maybe too complicated) example of selection in the RPG Example Project and a simple one in the Content Examples (Mouse Input Map or something like that).

What you might look at is when you click on the Actor, it setups up a reference in that actor ready to go.

When you click a second , you already have a reference to that actor, so then you would need to run checks to see if it a legal move, example bishop going Forward instead of Diagonal.

Then you would need to run maybe a bunch of Box Tracings to make sure that there is not a pawn in the way for example to make the move valid.

Then you could do a find look up rotation, rotate towards the end point, simple move to, then rotate again so it if facing the correct way.

I think if you started with a simple one like Pawn, and move up to Horses, queens, etc.

You will have to check as well, that if you move, you will have to run check to see if you are putting your king in to check as well, once again to see if it is a valid move.

Lots of work.

Good luck.

this can help you too