Particle Properties changing over time (timeout)

Get help using Construct 2

Post » Fri Aug 03, 2012 11:57 pm

Hi!

I'd like to change the visual of the particle effect according to the movement speed of an objet.

High speed = higher rate and lower timeout -> the visual result is bigger and fits the speed feeling.

My problem is that when I decrease the timout (since the speed is decreased itself), the particule generated before the speed decreasement are visually killed, they don't die "naturally" and... it's not very appealing.

How would you do that smoothly? It is possible to let the "old" particules keep their own properties and die naturally while new particules with new properties are generated? (and will die with their current properties)

Thanks :)

Rag'Ragtime2012-08-03 23:59:30
B
17
S
4
G
4
Posts: 137
Reputation: 3,767

Post » Sat Aug 04, 2012 6:04 am

You could try changing it from 'continuous' to 'one-shot' in the particle properties.

And have it create a new particles object every 0.05 seconds or something. Or every x seconds, where x can be proportional to the objects speed.

another thing that you may find useful is clamp() expression where you can set minimum and maximum limits for any value.
B
28
S
8
G
1
Posts: 469
Reputation: 4,683


Return to How do I....?

Who is online

Users browsing this forum: Pandadoor, Zebbi and 25 guests