Monday, May 8, 2017

Drawing a line in Construct 2.0

I was quite recently asked how a match-3 game like Tsum Tsum can be implemented in Construct 2. Thought this could be a good chance to check out how Construct 2 is like.

I figured I'll first implement a line drawing functionality, then have whatever "gems" it intersects be destroyed.


I'm sure there are better ways to implement this, but at such short notice, and without any prior experience with Construct, this is what I have for now:

Essentially, the line is just a series of short line segments each created with a scaled sprite. The original sprite is 1px by 4px. With 4px being the thickness of the line. Each segment is rotated and has its width set based on the touch position.