rex_moveto
Introduction
Move object to specific position.
Move object to specific position.
Use "Action:Move to XY", or "Action:Move to delta XY", or "Action:Move to object" directly to move instance to specific position. Or use "Action:Move to distance-angle" in polar-coordinate system.
When it moves to target position, "Condition:On hit target position" will be triggered.
The target position could be got by "Expression:TargetX", and "Expression:TargetY".
When it moves to target position, "Condition:On hit target position" will be triggered.
The target position could be got by "Expression:TargetX", and "Expression:TargetY".
Pause/Resume
Call "Action:Set enabled" and set "State" parameter to "Disabled" could pause current moving. Set the "State" to "Enabled" could unlock the pausing of moving.
Call "Action:Set enabled" and set "State" parameter to "Disabled" could pause current moving. Set the "State" to "Enabled" could unlock the pausing of moving.
Stop while hitting solid object
Sample capx
Set property "Stop by solid" to "Yes", or set by "Action:Stop by solid", to stop moving while hitting any solid object, and "Condition:On stop by solid" will be triggered.
Sample capx
Set property "Stop by solid" to "Yes", or set by "Action:Stop by solid", to stop moving while hitting any solid object, and "Condition:On stop by solid" will be triggered.
Continue mode
Set "Continued mode" to "Yes" to move object continuously.
Moving action under "Condition:On hit target position" with "Continued mode" to "Yes", will move forward immediately using remain delta time.
Set "Continued mode" to "Yes" to move object continuously.
Moving action under "Condition:On hit target position" with "Continued mode" to "Yes", will move forward immediately using remain delta time.
Moving angle
There are 2 kinds of moving angle available.
There are 2 kinds of moving angle available.
- Expression:MovingAngle: angle from previous position to current position.
- Expression:MovingAngleStart: angle from moving-start position to target position.