How do I connect multiple line?

Just started using Construct 2? Post your questions here

Post » Mon Jul 27, 2015 5:06 pm

How can i start something like this??
you draw (connect) line to the correct answer, but you can connect it multiple times.
or can you give me an example pls.

Thank you.
Image
B
8
S
2
Posts: 23
Reputation: 538

Post » Wed Aug 05, 2015 5:15 pm

You can make a square sprite (your line) and change its origin point to the left.


on touch start,
pick nearest word to touch.x touch.y
create object sprite at word.x, word.y

set position to word.x word.y
save that x and y value as touchstartX touchstartY

while in drag - > set the width to distance(touchstartx, touchstartY, touch.x, touch.y)
set sprite . angle = (touchstartx, touchstarty, touch.x, touch.y)

this will make the box stretch and aim at whatever you are dragging to

on touch end ,
pick nearest object(eg: shoe)
set sprite width to (word.x word.y, shoe.x, shoe.y)
set angle to (word.x word.y, shoe.x, shoe.y)

when you let go it will leave the line connecting the two items
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Wed Aug 05, 2015 5:21 pm

B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Thu Aug 06, 2015 7:24 am

- ,@Justifun Thank you very much. gonna try this :)
B
8
S
2
Posts: 23
Reputation: 538


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests