Hi guys. Super new to construct 2.
Had a question on touch controls and conditions.
Right now I have a bunch of "Dot" objects Laid out on a grid.
The distance between each dot is about 160 pixels, and there are 5 different possible Dot colors (Same object, different animation frame).
When a Dot is touched, a line of the same color spawns at the Dot's position, and its width adjusts to the position of the cursor.
I want to make it so that when you drag the line to an adjacent Dot (Within 160px) of the same color, the current line stays in place and a new line starts.
I roughly followed This video: youtube.com/watch to do the line mechanic.
I have a global variable keeping track of the number of active (selected) dots.
I have two different On touched events:
One for when the first dot is selected:
And another for when more than one dot has been selected:
Under my assumption, whenever a Dot is touched, the system will pick the appropriate touch event depending on the NumActiveDots condition.
However this doesn't seem to be the case.
I managed to start the first line when clicking the first dot, but after that no other lines spawn.
Sorry if I explained things in a complicated way.
EDIT: Here's the capx: dropbox.com/s/u0ev0icxdmcvu2w/Dots.capx