Uses "Action:Add chess" (rex_board plugin) to add chess into a board, it only set the logical position without changing the physical position.
If you want to put a set of chess, you might see rex_layout2board plugin.
Set the "MoveTo" to "No" in property table to disable the built-in moving in rex_grid_move behavior. Designer could maintain physical moving manually, like adding tween moving.
Setting the "MoveTo" to "No" only skips the physical moving, the logical moving still works.
After calling Action:Move to neighbor/Action:Move to chess/Action:Move to LXY, the logical position will move to target logical position, then designer can get the responded physical position by ( Board.UID2PX(sprite.uid) , Board.UID2PY(sprite.uid) ). i.e. the chess moves
from ( sprite.X, sprite.Y ) to ( Board.UID2PX(sprite.uid) , Board.UID2PY(sprite.uid) )
Users browsing this forum: No registered users and 1 guest