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

rex_interception

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
Predict the point of intersection. It assumes that objects move with constant speed.
This behavior will not change the position of instance, it only provides predicted position.

Usage
Sample capx
Follows these steps to get intersection position of target instance,
  1. Call "Action:Lock" or "Action:Lock by UID" to set the target instance. Read it back by "Expression:TargetUID".
  2. Then get predicted intersection position of target instance by ( Expression:PredictX ,Expression:PredictY ). Or get angle from current position to predicted position by Expression:ForceAngle.

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