[help] draw line between two sprites (new problem)

Get help using Construct 2

Post » Fri Jun 06, 2014 7:13 am

Question: How would I draw a line, or stretch a sprite from one object to another?
I plan on tweening (2) objects. As they tween a line needs to be drawn to connect them. I need this to be as CPU lite as possible.

line.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by DrathVader on Wed Jun 11, 2014 4:46 am, edited 1 time in total.
B
13
S
1
Posts: 59
Reputation: 1,901

Post » Fri Jun 06, 2014 9:04 am

Here's a quick example of drawing a line between objects. I use "drag and drop" for moving the objects but the method would be the same for tweening object positions.

drawline.capx
You do not have the required permissions to view the files attached to this post.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Fri Jun 06, 2014 3:34 pm

PERFECT :) Exactly what I needed.

Looking at the events. I should have figured that out. Its been a few months since I was nose deep in Construct.

Thank you very much!!!
B
13
S
1
Posts: 59
Reputation: 1,901

Post » Fri Jun 06, 2014 3:54 pm

Quick question. Any idea how we could fake anti-aliasing on the line. so it doesn't stair-step?
Only thing I can think of is make it double resolution and scale down.
B
13
S
1
Posts: 59
Reputation: 1,901

Post » Wed Jun 11, 2014 4:39 am

BUMP. Anyone know how I can prevent my lines from looking like crap? lol. Really need to figure this out soon before my deadline. Any help is appreciated.

jag.png
You do not have the required permissions to view the files attached to this post.
B
13
S
1
Posts: 59
Reputation: 1,901


Return to How do I....?

Who is online

Users browsing this forum: plinkie, SERG 04 and 2 guests