Simple javascript based matching game. Useful for board games that compare adjacent tiles. This tile based script, compares similar numbered tiles and merge them to one. This is still an incomplete implentation, I just coded it for the spur of the moment.
Updated at 16/09/2014: Modified the script to be a construct 2 plugin compatible. Digit Merger PluginThis code allows the 2D array to merge similar digits. The Plugin stores the 2D array information locally and conforms to the construct 2 array format.
I. Properties - height - width
II. Conditions - checkComplete() :triggers after check is completed - mergeComplete() :triggers after merge is completed
III. Actions - check(xcoordinate,ycoordinate,digit) - merge(xcoordinate,ycoordinate,digit) :execute the merging - clearChange :clears the change
IV. Expressions - getChainCount() :retrieves the number of chains - getChange(index:0) :retrieve the change on that index