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

rex_miniboard_touch

Plugin, ACE table, Discussion thread
Dependence:
  • rex_miniboard
  • rex_touchwrap

Introduction
Drag & drop mini board.

Usage
ss

Sample capx
Prepare
Add this behavior under mini board object, and also add
rex_touchwrap into project.
Drag
Drag any chess of this mini board could drag this mini board. All chess will move together if "
Pin mode" (properties of mini board) sets to "Yes".
"Condition:On dragging start" will be triggered when dragging start.
Mini board will be dragged aligned the grid of main board if any chess of this mini board is overlapped with the main board. "
Condition:On dragging at main board" will be triggered when this mini board has been dragged aligned any main board. Get logical position by ( "Expression:LX" , "Expression:LY" ) and the UID of main board by "Expression:MBUID".
Logical position changing
"
Condition:On logical position changed" will be triggered if the logical position has been changed by dragging. User could test where the mini board could be put on current logical position ( "Expression:LX" , "Expression:LY" ), at main board with UID to
"Expression:MBUID".
Align to grids of main board
Set property "
Align to grids" to "Yes" or call "Action:Set align mode" to align this mini board to grids of overlapped main board while dragging.
Drop
"
Condition:On dropped" will be triggered when dropped. Or use "Condition:On dropped at main board" to pick the main board at the same time. User could do some interacting with this main board like putting this mini board at
logical position ( "Expression:LX" , "Expression:LY" ).
Drag-able
Mini board could be dragged only if the drag-able sets to "Yes".
Sets drag-able at "
Enable" in properties table. Or sets it by "Action:Set enable".
Try drag
"
Action:Try drag" could force this object trying to be dragged if there has a touch point above.

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