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

rex_anchor2

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
Position objects relative to the size of the window.

Usage
Horizontal
Align mode of horizontal could be one of these options
  • Left edge
  • Right edge
  • Center
  • Hotspot
Choose one mode in properties table or by action.  and assign the related position of view port, the value is 0 - 1.
  • 0 = left edge of view port
  • 0.5 = center of view port
  • 1 = right edge of view port
Vertical
Align mode of vertical could be one of these options
  • Top edge
  • Bottom edge
  • Center
  • Hotspot
Choose one mode in properties table or by action, and assign the related position of view port, the value is 0 - 1.
  • 0 = top edge of view port
  • 0.5 = center of view port
  • 1 = bottom edge of view port

Sample
Align at center
Sample capx - center
Set
  • Horizontal align mode = Center
  • Horizontal position = 0.5
  • Vertical align mode = Center
  • Vertical position = 0.5
to align instance at the center of view port.
Align at right center
Sample capx - right center
Set
  • Horizontal align mode = Right edge
  • Horizontal position = 0
  • Vertical align mode = Center
  • Vertical position = 0.5
to align instance at the right-center of view port.

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