How do I Rounds Out These Drawn Lines?

Get help using Construct 2

Post » Fri Jan 23, 2015 3:02 am

Message: Canada GDP can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hey folks, so I'm making a prototype for a little 2D physics based puzzle game. One of the mechanics I have in place is the ability to draw lines in an MS Paint-esque fashion. However, I'm hitting some problems.

Image

The lines I'm drawing are all ending up pretty ugly. Jagged edges and whatnot. And when I move the mouse too fast, the lines sometimes refrain from connecting entirely.

I've looked around the forums for a few different ways to fix this, but nothing's helped so far. I tried using the Paster plugin, but admittedly, I am at a complete loss as how to even use that plugin. Any idea how to smooth out those lines and make them look nice?

Here's the capx. Thanks so much for any suggestions.

https://www.dropbox.com/s/bc559kp709zeqgw/DrawingHalpPls.capx?dl=0
B
12
S
2
Posts: 23
Reputation: 738

Post » Fri Jan 23, 2015 4:54 am

Jagged edges are from your lines pivoting at the wrong point -- they should pivot from the end of the previous line segment, not in the middle. To solve that, move the line's origin to the left side of the image(just press 4 on the number pad). I also found that adding only 4 to the width of the new line -- instead of 15 -- greatly improved line smoothness. You'll still get gaps when moving the mouse really, really fast, but that's because your line graphic doesn't extend to the left and right edges of the canvas.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,116

Post » Fri Jan 23, 2015 6:37 am

My friend, you are a lifesaver! Thank you so much!
B
12
S
2
Posts: 23
Reputation: 738


Return to How do I....?

Who is online

Users browsing this forum: engin20020, rbailey83, tarek2 and 24 guests