Drawing lines

New releases and general discussions.

Post » Fri Apr 18, 2008 2:34 pm

Is it possible in construct to draw lines between data points, and smooth the line?
Image Image
Scirra Founder
B
124
S
37
G
25
Posts: 3,945
Reputation: 44,887

Post » Fri Apr 18, 2008 2:36 pm

[quote="Gullanian":1gqpxk3y]Is it possible in construct to draw lines between data points, and smooth the line?[/quote:1gqpxk3y]
O.o I dunno but it would be hell useful if you could... grappling hooks, laser beams, fishing lines, you name it... handy handy.
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Fri Apr 18, 2008 4:32 pm

Sounds like we need a 'line' plugin. For now, though, you can use a Canvas object and draw lines to it, but since it uses an entire surface for drawing on, it's not ideal for all uses - but should suffice for a graph or something like that.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Fri Apr 18, 2008 4:49 pm

Why dont we use sprite thats 1x1 and just set the right height/wight ?
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Fri Apr 18, 2008 5:01 pm

I'm not sure that'd be antialiased correctly.

Canvas is the best method for now, but a line plugin would be cool especially if it had a 'shoot up/shoot down' action to easily create grappling hooks.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Fri Apr 18, 2008 5:02 pm

That doesn't render the same, and as rich said it's difficult to make it appear anti-aliased (which is supported built-in by some cards). Plus you have extra legwork trying to set up the pivot point and angle to get it to line up with a start position and end position. Lines draw faster... and I guess you could draw a whole list of lines... it'd be handy even if it can be already done anyway.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Fri Apr 18, 2008 6:10 pm

Grapling hooks etc would be great, and also if you could set the elasticity and gravity of a line and tile texture it.
Image Image
Scirra Founder
B
124
S
37
G
25
Posts: 3,945
Reputation: 44,887


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests