Smooth Particles

Get help using Construct 2

Post » Sun Jul 12, 2015 11:09 pm

I'm wondering if anyone out there has a decent technique for having particles work with very fast moving objects.

In my game, I have an object that's moving at 1000 pixels a second. It's spawning a smoke particle every tick. I note that the particle has a slight gap between it and the next one. I'd like to remove this gap, and was hoping someone knew of a great method for doing so.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750

Post » Mon Jul 13, 2015 12:21 am

I would say use bigger smoke images - or, at least, increase the size and shape of the particles so they overlap with each other. I'm not sure of the effect you're after, but hopefully something like this might work and is low on particle overhead?
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,228
Reputation: 44,888

Post » Mon Jul 13, 2015 4:32 am

If you save to old position of the sprite in some variables, you could then use a loop and lerp to create particles in between the positions.
B
92
S
32
G
109
Posts: 5,290
Reputation: 70,991

Post » Mon Jul 13, 2015 2:23 pm

@Colludium Looks great for the most part. Might try to increase the number of particles, as it does become hard to see at high speeds.

@R0J0hound That sounds a little bit above my abilities.So you're saying store the pos of 2 particles and use lerp to get the position between the two, then create a particle in that space... Might that be quite CPU intensive?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750

Post » Mon Jul 13, 2015 2:53 pm

@AnD4D, I've updated my project linked above with an example of how to use lerp to interpolate between the previous and the current bullet position. @R0j0hound 's suggestion is more robust and will give you more options and control over your visual effects. :)
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,228
Reputation: 44,888

Post » Mon Jul 13, 2015 4:36 pm

@Colludium Brilliant! Thank you!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750


Return to How do I....?

Who is online

Users browsing this forum: ST314, Yahoo [Bot] and 32 guests