# reveal picture with line game(SOLVED)

Get help using Construct 2

### » Sat Dec 08, 2012 9:24 pm

Is there any way that construct 2 can do this kind off game.The player has to draw a line from point a to b and when the lines are closed or at the opposite end of the screen it should reveal a part off the picrure. See illustration below.

DravenX2012-12-11 14:26:11
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

### » Sat Dec 08, 2012 9:32 pm

Well ... Possible , And easily ... I'm too busy working on my game for the competition , won't be able to help you ... Sorry !

I'll give you a hint : Take the horizontal line X and the vertical line Y
and make a square ( Width and Height ) with the distance between zero ( Or the the two starting point position variables ) and the two values ... The other part is all about blending ... Check out the blending example in the C2 examples libraries !
B
35
S
16
G
16
Posts: 2,223
Reputation: 16,591

### » Sat Dec 08, 2012 10:17 pm

I'll give you a hint.
It takes three rectangles to fill in the black portion of your example.
B
163
S
48
G
100
Posts: 7,457
Reputation: 72,036

### » Sun Dec 09, 2012 11:46 am

Thank you for the hints.I managed to solve this little problem. Gotta love
Them global variables lol.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

### » Tue Dec 11, 2012 12:34 am

which competition, can i know the details so that i can submit mine to compete against you
B
16
S
4
Posts: 248
Reputation: 2,267

### » Tue Dec 11, 2012 2:25 pm

B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141