How to make Advanced trail effect ?

Get help using Construct 2

Post » Tue Nov 25, 2014 9:07 pm

Hello,

I have been through a lot of struggle and I found myself nowhere near the end. I want to make performance wise trail effect for multiple (about 10-30) objects, without discontinuous appearance, especially with thin lines. And with slow fading.

Something like http://hakim.se/experiments/html5/trail/03/.

I tried lot of approaches, and the most simmilar effect can be created with help of canvas plugin through draw line (which is awesome btw). Unfortunately canvas plugin is little performance intensive and when I tried to make lot of trails, I didnt get it quite right and performance impact on my 4-quad machine was unpleasantly high.
Recreating sprite over and over again with fading isnt good idea either, if the object moves too quickly trail will appear dotted or with unwanted spaces between sprites.

I hope someone of you guys can help me, thx in advance for responses.

Here is what I was able to do (yeah it isnt much) :
You do not have the required permissions to view the files attached to this post.
Try my creations on newgrounds or Google play, feedback highly appreciated!

ImageImage
B
9
S
1
Posts: 73
Reputation: 785

Post » Tue Nov 25, 2014 9:20 pm

You could just do it with a particle effect. You'll need to adjust the rate to get the best look/performance.
You do not have the required permissions to view the files attached to this post.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Tue Nov 25, 2014 10:20 pm

Thanks for the example @TheWyrm - I was looking at doing this soon.
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560

Post » Tue Nov 25, 2014 11:03 pm

I used this method a fellow moderator called @linkman2004 told me about.


AdvancedTrailsTest.capx


Check out this Thread for more stuff
You do not have the required permissions to view the files attached to this post.
B
21
S
6
Posts: 244
Reputation: 2,665

Post » Wed Nov 26, 2014 11:25 pm

Thank you everyone for your responses, and especially thank you Wisdoms! Thats exactly what I need, it can be tweaked a lot too. It also works if you want to make trails small, which is great :) So another challenge, I want to make it appear on multiple objects, I didnt have the time, but Im going to try !
Try my creations on newgrounds or Google play, feedback highly appreciated!

ImageImage
B
9
S
1
Posts: 73
Reputation: 785

Post » Thu Feb 05, 2015 7:08 pm

So after lot of effort I failed to make multiple trails. Do anybody have an idea how to do that correctly? If there is only one trail, it works ok, but, if there is more than one, it doesnt work as intended (wrong angle of spawned sprite trail - on second rocket, not destroying the correct emmiter and more). I wanted to have less sprites, so I used longer sprites with less resolution (target was about 10 trail sprites for 1 rocket).

Here is a capx what I have done so far (not much I know).
You do not have the required permissions to view the files attached to this post.
Try my creations on newgrounds or Google play, feedback highly appreciated!

ImageImage
B
9
S
1
Posts: 73
Reputation: 785


Return to How do I....?

Who is online

Users browsing this forum: rayolf and 10 guests