# How do I create dotted line from point to point?

Get help using Construct 2

### » Sat Nov 14, 2015 5:05 pm

How can i draw dotted line from given point to given point?
B
14
S
1
Posts: 68
Reputation: 785

### » Sat Nov 14, 2015 5:30 pm

Easiest way it would seem would be to create a tiled-background consisting of a dark part and an empty part and set it's angle from point 1 to point 2 and it's width to the distance between them..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

### » Sat Nov 14, 2015 5:45 pm

Sorry i don't understand " set it's angle from point 1 to point 2"!! can you gine an example plz?
B
14
S
1
Posts: 68
Reputation: 785

### » Sat Nov 14, 2015 5:53 pm

set angle : angle(x1,y1,x2,y2) where x1 is the x-position of point 1, etcetera..

for the distance you can use distance(x1,y1,x2,y2)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

### » Sat Nov 14, 2015 6:21 pm

thank you very much for your help!!!!
B
14
S
1
Posts: 68
Reputation: 785

### » Sat Nov 14, 2015 11:44 pm

@mikelantzelo can you please send a .capx? i am not sure i understand it or maybe attach a picture of your events?
B
24
S
7
G
1
Posts: 90
Reputation: 2,095

### » Sun Nov 15, 2015 7:13 am

Here is a small example... i don't know if this is what you want...

https://www.dropbox.com/s/3cm9akydyds01 ... .capx?dl=0
B
14
S
1
Posts: 68
Reputation: 785