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

rex_uid2prop

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
Get/set properties (x,y,angle,opacity,private variable) by UID without picking first.

Usage
Sample capx
Get properties by these expressions, put UID at first parameter.
  • Position: "Expression:X", "Expression:Y".
  • Angle: "Expression:Angle".
  • Size: "Expression:Width", "Expression:Height".
  • Opacity: "Expression:Opacity".
  • Visible: "Expression:Visible"
  • Image point: "Expression:ImgptX", "Expression:ImgptY". Put an image point name/index at second parameter.
  • Private variable: "Expression:PV". Put an alias at second parameter. User need call "Action:Define alias" before,  to define an alias referring to an instance variable of an object.
Get properties between instances.
  • Distance between two instance: "Expression:DistanceTo".
  • Angle from an instance to another:  "Expression:AngleTo"

Actions to manipulate properties of an instance by UID
Sample capx
These actions could
manipulate properties of an instance by UID
  • Action:Destroy instance by UID
  • Action:Set X, Action:Set Y, Action:Set position, Action:Set position to another object, Action:Move forward, Action:Move at angle
  • Action:Set angle, Action:Rotate clockwise, Action:Rotate counter-clockwise, Action:Rotate toward angle, Action:Rotate toward position, Action:Set angle toward position, Action:Set angle toward position
  • Action:Set visible, Action:Set opacity

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