Particles that stop moving after a while and dont die

Get help using Construct 2

Post » Fri Jun 17, 2016 1:18 am

How do I create particles that are shot without gravity. They gradually decelerate then stop and dont die.
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Post » Fri Jun 17, 2016 3:59 am

System set particles timescale.
Image ImageImage
B
169
S
50
G
173
Posts: 8,313
Reputation: 110,270

Post » Sat Jun 18, 2016 7:48 pm

i did, the particles dont stop, they keep moving
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Post » Sat Jun 18, 2016 7:48 pm

gravity=0, acceleration=-50
timescale
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Post » Sat Jun 18, 2016 7:55 pm

with negative acceleration the particles act as if they have gravity. I want them to decelerate and stop.
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Post » Sat Jun 18, 2016 7:58 pm

@Ashley ?
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Post » Mon Jun 20, 2016 10:31 am

Just use zero gravity and a negative acceleration.
Scirra Founder
B
397
S
236
G
88
Posts: 24,389
Reputation: 194,448

Post » Mon Jun 20, 2016 11:44 am

Ashley wrote:Just use zero gravity and a negative acceleration.

I already tried that. When I use zero gravity with negative deceleration and set the particles to a high time scale- instead of decelerating to a halt, they start moving in the opposite direction after reaching their peak- as if there is gravity.

@ashley just try doing it and you will see - this might be a bug in the latest stable version- if you didnt intend it to be that way. Can you share an example where they stop and stay alive until their timescale runs out?
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Post » Mon Jun 20, 2016 2:10 pm

It's because negative acceleration allows them to start reversing too. That's different to gravity, which is a constant force downwards. Maybe you want "destroy when stopped" mode?
Scirra Founder
B
397
S
236
G
88
Posts: 24,389
Reputation: 194,448

Post » Mon Jun 20, 2016 2:53 pm

@Ashley - i want to keep them for a while when they stop. Then after x seconds pass (timescale), destroy them or freeze them (they cant be interacted with and are no longer active in order to save cpu).

is that possible to do? If not - it would be very useful to have it. Keeping the particles present adds to the game feel. The player knows that way that they left a mark of something happening to the place. Particle permanence!
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Next

Return to How do I....?

Who is online

Users browsing this forum: batto, Elliott, kellehk, oosyrag, totoe and 26 guests