How do I to connect dots ?

Get help using Construct 2

Post » Sat Mar 14, 2015 4:06 pm

Hi, sorry for my bad english but i need help :P

i need connect dots of a sprite. the user touches in point A to B spawn another sprite to form the drawing

Image
B
5
Posts: 31
Reputation: 295

Post » Sat Mar 14, 2015 4:11 pm

Create Object "Tiledbackground" at pointa.x, pointa.y, set angle to angle(pointa.x,pointa.y,pointb.x,pointb.y), set height to 1, set width to distance(pointa.x,pointa.y,pointb.x,pointb.y)
B
37
S
11
G
5
Posts: 485
Reputation: 5,315

Post » Sat Mar 14, 2015 4:18 pm

fldr wrote:Create Object "Tiledbackground" at pointa.x, pointa.y, set angle to angle(pointa.x,pointa.y,pointb.x,pointb.y), set height to 1, set width to distance(pointa.x,pointa.y,pointb.x,pointb.y)

You have example? because i need to know at what point he touched.

Example: goo.gl/CG9mK4
B
5
Posts: 31
Reputation: 295

Post » Sat Mar 14, 2015 4:46 pm

does the player have to touch both points or will it automatically draw a line to the point with the next higher number?
B
37
S
11
G
5
Posts: 485
Reputation: 5,315

Post » Sat Mar 14, 2015 4:57 pm

fldr wrote:does the player have to touch both points or will it automatically draw a line to the point with the next higher number?


The player will automatically draw a line to the point
B
5
Posts: 31
Reputation: 295

Post » Sat Mar 14, 2015 6:52 pm

you could pick the first dot by an event "pick nearest dot to touch.x, touch.y"
B
37
S
11
G
5
Posts: 485
Reputation: 5,315


Return to How do I....?

Who is online

Users browsing this forum: sebastiangohhy, Taser and 7 guests