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

rex_toucharea2

Plugin, ACE table, Discussion thread
Dependence: rex_touchwrap plugin

Introduction
Get touch by tracking touchID, each instance could track one touch point.

Usage
Sample capx
Prepare
Remember put rex_touchwrap plugin into project.
Get touch point
Using ("Expression:X", "Expression:Y") to get current touch point, and ("Expression:StartX", "Expression:StartY") to get start point of touched for each instance.
Get dragging vector
Using ("Expression:VectorX", "Expression:VectorY") to get dragging vector. Or "Expression:Angle", "Expression:Distance" in polar coordinate system.
Touch events
"Condition:On touch start", "Condition:On touch end" will be triggered while touching start/release of instance. "Condition:Is in touch" will return true while touching instance. "Condition:On touch moving" will be triggered while dragging moving.

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