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

rex_layouter_linear

Plugin, ACE table, Discussion thread
Dependence: rex_glayouter plugin

Introduction
Put instances linear on rex_glayouter object.

Usage
Sample capx
Prepare
Put this behavior under rex_glayouter object.
Direction
The direction of arrangement could be "Left to right", or "Right to left", or "Top to bottom", or "Bottom to top" sets by "Direction" in properties table.
Delta distance
There are
"Fix" or "Average" modes to get delta distance between instances. It could be configured by "Mode" in properties table, or "Action:Set mode".
Fix mode
The spacing (delta distance) between instances is defined by "Spacing" in properties table, or "Action:Set spacing".
In this mode, instances could be arrange from "Start", or "Center", or "End" set by "Alignment" in properties table, or "Action:Set alignment".
Average mode
The delta distance between instances is got by averaged.

Result of arrangement
In rex_glayouter object, user could get result of arrangement  under "Condition:On layout instance" by
  • Expression:InstX
  • Expression:InstY
  • Expression:InstAngle
for each instances in private array of this rex_glayouter object.

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