Draw a line, or circle

Get help using Construct 2

Post » Sun Sep 08, 2013 12:10 am

Are there any capabilities of drawing lines from one point to another, or perhaps a circle with a variable radius?wizaerd2013-09-08 01:50:51
B
14
S
6
G
1
Posts: 143
Reputation: 1,795

Post » Sun Sep 08, 2013 5:06 am

Here is a quick little example of lines.

Drag and drop the green point anywhere on the canvas, move your mouse away from the green point and left click to draw a line between your mouse pointer and the green square.

The line is just a 8x8 sprite that I moved the center to the far right edge. To draw the line I have the line face the mousepointer, and set the scale to Height 1 (or whatever line thickness you want, and for the X I use the distance between the mouse pointer and the center of the green point.

The example is far simpler than this explanatin :)

https://www.dropbox.com/s/aa4f68o8mmw712s/makeline.capx

hope that helps :)
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Sun Sep 08, 2013 5:16 am

Actually, I just learned about the Canvas plugin... Works very nicely for what I want...
B
14
S
6
G
1
Posts: 143
Reputation: 1,795


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 25 guests