How do I create a smooth curved line?

Get help using Construct 2

Post » Fri Jul 10, 2015 3:22 pm

Hi there,

I was wondering if there is a way to create a line that curves smoothly.

I use an Enemy Sprite with the Bullet behavior that moves left and right by changing the angle of motion and spawns many Ball Sprite always with the Bullet Behavior forming a line.

Currently I get a line as in example number 2, but I would come to get an effect as in example number 1.

Image

Is there any way?

Thanks for your time! :D
B
17
S
3
Posts: 62
Reputation: 1,054

Post » Sat Jul 11, 2015 10:28 pm

UP!
B
17
S
3
Posts: 62
Reputation: 1,054

Post » Sat Jul 11, 2015 10:29 pm

Using sine behavior?
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Sat Jul 11, 2015 10:32 pm

I've tried but because the enemy has to change direction randomly, I had to use the bullet behavior
B
17
S
3
Posts: 62
Reputation: 1,054

Post » Sat Jul 11, 2015 10:42 pm

you can use both
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Sat Jul 11, 2015 11:12 pm

I added the sine behavior but nothing happens, is there any configuration to do?
B
17
S
3
Posts: 62
Reputation: 1,054

Post » Sat Jul 11, 2015 11:27 pm

Do you want something like this?
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Sun Jul 12, 2015 7:42 am

MadSpy wrote:Do you want something like this?


Added a spawning event to your example to show the smooth line..

Apdapted example
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jul 12, 2015 10:10 am

No problem @LittleStain (I can't see your changes, I use only the latest stable version (r206))
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Sun Jul 12, 2015 7:47 pm

Maybe I expressed myself badly, so here's the capx

Thanks anyway for your help!

@MadSpy I made this on r209, if u want i can make it also for r206
B
17
S
3
Posts: 62
Reputation: 1,054

Next

Return to How do I....?

Who is online

Users browsing this forum: DjowG, ramyaswetha and 7 guests