SOLVED Particles Not Keeping Pace With Fast Object (Car)

Get help using Construct 2

Post » Mon Oct 05, 2015 2:16 am

Hello and thanks for looking. I have a car object that, on button press, creates a particle object on the car imagepoint. Depending on how fast the car is moving, the particle is instantiating well behind it. If stopped, the particle is created exactly where it should be.
My question is; is this a problem with my pc being too slow or would this happen regardless? I could code in a fix but if it's my pc, then it's not going to look right on the next pc.

Solved below by Silverforce
Last edited by gamecherry on Mon Oct 05, 2015 4:43 am, edited 1 time in total.
B
25
S
7
Posts: 79
Reputation: 2,267

Post » Mon Oct 05, 2015 2:28 am

Is the particle a spray or one shot?

If its a spray, it should always be positioned to the car at that imagepoint.

If its a one-shot and there's a delay as you say, have a check for your car velocity, if its slow, then use an imagepoint where it looks right. If the car is moving fast, use another imagepoint towards the front of the car, so the particles look correct.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Mon Oct 05, 2015 3:01 am

The particles are in spray and I could position the imagepoint closer but Im worried that if the delay is caused by a slow pc that when played on a faster pc the particle will instantiate correctly (at this point closer, which would be wrong.)
B
25
S
7
Posts: 79
Reputation: 2,267

Post » Mon Oct 05, 2015 4:24 am

It's due to your spray rate, each interval has a timer, and within that timespan if you car is moving really fast, it would be far in front. It's normal actually.

If you want accurate smoke trails, you have to adjust the rate to be dynamic, so a faster car will output more trails than a slower one.

It's nothing to do with PC speed.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Mon Oct 05, 2015 4:42 am

you're right! If I crank up the particle rate to 60, it instantiates where it should. I had it at 5 per second. It wasn't obvious to me until you posted it...it makes sense. Thanks man!
B
25
S
7
Posts: 79
Reputation: 2,267


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 10 guests