Draw Line

Get help using Construct 2

Post » Thu Jul 13, 2017 7:11 pm

Hey guys, I just wanna know how can I draw a line automaticly in construct! I mean I wanna a line be drawn in center of layout. I have seen "Canvas" Plugin, but I don`t know how can I work with that. anyone here can help me?
B
2
Posts: 2
Reputation: 154

Post » Thu Jul 13, 2017 9:00 pm

i believe i read something about canvas support in full version, however, being as you know where you want your line, why not just make a sprite? something rectangular, 5x100 or something like that, and disable initially visible, when you want the line drawn , set visible.
maybe try using something like,

set sprite width to distance (origin.x,origin.y,mouse.x,mouse.y)
set sprite angle to mouse.x, mouse.y

this will set the length or width of the sprite to the distance between your start point and where you clicked.
B
22
S
12
G
1
Posts: 108
Reputation: 2,774

Post » Thu Jul 13, 2017 9:38 pm

No, I meant, I wanna make a line in layout and that automaticly Stretch out anytime. and after an evnet (like after 3 seconds) that line will be tilted. So I don't think so your method can help me.
B
2
Posts: 2
Reputation: 154


Return to How do I....?

Who is online

Users browsing this forum: batto and 26 guests