Moves chess to target position, or neighbor tile.
Categories > Board > rex_grid_moveIntroductionLinksDependenceUsageMoving startOverlapping testMoving accepted or rejectedFlow chart of Condition:On colliding beginFlow chart of Condition:On get solidMovingMove to logical positionMove to physical positionContinue modeStopSwapWrapAIWanderApproach/Depart
None
Action:Move to neighbor to move chess to neighborAction:Move to chess, Action:Move to chess by UID to move chess to target chess/tileAction:Move to LXY, Action:Move to offset to move to the specific logical position. Chess will try to move
Expression:SourceLX, Expression:SourceLY, Expression:SourceLZ) Expression:DestinationLX, Expression:DestinationLY, Expression:DestinationLZ) Expression:Direction , if the target is a neighbor. Plugin first checks the target LXYZ is empty or not.
Trigger Condition:On colliding begin if target LXYZ is not empty
Next, it will test if chess could move to target LXYZ or not, when
target LXYZ is inside board, and
property Force move is Yes , otherwise (Force move is No), 
Target LXYZ is empty
Target LXY does not have solid chess
Chess has official solid behavior, or
Has custom solid property set by Condition:On get solid (Sample capx)
Action:Set move-able or Condition:On get solidAfter testing,
Condition:On moving accepted will be triggered if testing passes, then moves chess.
Condition:On moving rejected will be triggered if testing failed.
Expression:BlockerUID : UID of solid or occupied chess at target logical positionChess will move to target logical position immediately if moving accepted.
Z-index will be changed when logical overlapping in Force move mode.
Chess will move from current physical position to target physical position ( Expression:TargetX , Expression:TargetY ) by rex_moveto-like behavior if property MoveTo is set to Yes.  Condition:On hit target position will be triggered when moving to target position.
Set property MoveTo to No to turn off built-in moving behavior.
Set Continued mode to Yes to move object continuously. Moving action under Condition:On hit target position will move forward immediately using remaining time of current tick.
Action:Stop will stop physical moving, it will not change the logical position.
Action:Swap could swap and move two chess at the same time. The target chess is indicated by UID.
Sample capx
Wrap mode is enabled by Wrap property in rex_board object, which will wrap the logical boundaries. It will also effect the physical moving when chess moves across wrapped boundaries.
For example, in 10x10 board -
Moves from (0, 0) to (9, 0) : (0,0) and (9,0) are wrapped neighbors.
Moves from (1, 0) to (9, 0) :
This behavior also provides some actions to move chess to neighbor for AI.
Sample capx
Action:Wander could move to a neighbor tile randomly inside a boundary, 
The center position is
Action:Reset center positionThe boundary is set by
Wander range x, Wander range y), orAction:Set range x, Action:Set range yAction:Approach/Depart, or Action:Approach/Depart chess by UID could move chess approach to, 
or depart from target chess.