reveal picture with line game(SOLVED)

Get help using Construct 2

Post » 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

Post » 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,222
Reputation: 16,589

Post » 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.
Image Image
B
161
S
48
G
91
Posts: 7,359
Reputation: 67,273

Post » 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

Post » 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

Post » Tue Dec 11, 2012 2:25 pm

@tringio please stay on topic
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141


Return to How do I....?

Who is online

Users browsing this forum: Callan S, getplay, Kagubro and 24 guests