Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_moveto

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
Move object to specific position.

Usage
Sample capx
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".
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.
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.
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.
Moving angle
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.

Waypoints
Add command queue behavior to pend target position to make a series of waypoints.

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About