Is it possible in construct to draw lines between data points, and smooth the line?
O.o I dunno but it would be hell useful if you could... grappling hooks, laser beams, fishing lines, you name it... handy handy.
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.
Why dont we use sprite thats 1x1 and just set the right height/wight ?
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.
Develop games in your browser. Powerful, performant & highly capable.
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.
Grapling hooks etc would be great, and also if you could set the elasticity and gravity of a line and tile texture it.