Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: BlackWhopper on September 17, 2022, 02:57:54 AM

Title: Particle System limit?
Post by: BlackWhopper on September 17, 2022, 02:57:54 AM
My goal is to have drift sparks/particles play when the player is drifting. Problem I'm having is all of the inputs and flow of actions works well, but after a certain amount of time the particles stop. I can enter and exit the states just fine, they'll play. They'll play if I swap between left and right drift. But it just seems like there's some sort of particle cap I'm hitting. If I drift all of the particles out of Left Drift, then nothing will appear when I try to right right. So its like they share the limit. To see if it was the particle system itself I removed it and just placed it in the scene. It played indefinitely, so I'm guessing its some sort of problem with the actions?
Title: Re: Particle System limit?
Post by: djaydino on September 18, 2022, 04:13:15 PM
Hi.
Do you also have a particle system stop?

also can you show the particle system settings
Title: Re: Particle System limit?
Post by: BlackWhopper on September 19, 2022, 03:22:50 PM
I'm not sure what a particle system stop is, I tried the "Stop on exit" option in the Action, but that hasn't changed anything.
The only enabled parts of the particle system are what you see, nothing below other than shape and renderer are checked.


Title: Re: Particle System limit?
Post by: djaydino on September 20, 2022, 05:40:00 AM
from what i can see

play on awake is on, you probably want that off. as it will play immediately

the particle system is set as loop so if you don't stop it, it will do continues looping.

the duration is 5 so, if you stop it takes 5 seconds to end the last particle
Title: Re: Particle System limit?
Post by: BlackWhopper on September 20, 2022, 08:15:22 PM
I've changed all of those, but nothing has changed. I'll attach a video of whats happening.

https://imgur.com/a/kap6Etf
Title: Re: Particle System limit?
Post by: djaydino on September 21, 2022, 07:34:59 AM
Hi.
Try increasing the Max particles (double the size)
if it works longer it look like they are not de-spawning
so far i still think it has to do with some settings on the particle system.
if it came from a package double check if there are no scripts attached that for example destroy it after x time.
Title: Re: Particle System limit?
Post by: BlackWhopper on September 21, 2022, 02:07:13 PM
I've attached a video of the particle system during runtime. The Duration is set to 200

https://imgur.com/a/D3A8npQ

I can see that the color changes to black at some point, but I don't know what that means
Title: Re: Particle System limit?
Post by: djaydino on September 22, 2022, 01:10:53 AM
does it have some script on it?
i don't think that should change by itself.

it best to look to some particle system tutorials to get more familiar with all the settings :)
Title: Re: Particle System limit?
Post by: BlackWhopper on September 23, 2022, 11:04:59 PM
Okay yeah, I totally forgot I had an old script that was also trying to play the particle system. My bad. Thank you for your help
Title: Re: Particle System limit?
Post by: djaydino on September 24, 2022, 01:54:23 AM
Hi.
No problem, it happen to me several times :)