Frictional Games Forum (read-only)
Make particle system follow player - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Make particle system follow player (/thread-22227.html)

Pages: 1 2


Make particle system follow player - JonnyAnomaly - 07-24-2013

Hi,

Is it possible to make a particle system follow the player - In my case, a fog PS that will continuously follow the player throughout the map? I think creating a PS at an entity and calling it "player" will only cause a PS to be created at the location of the player (?)


RE: Make particle system follow player - Artyom - 07-24-2013

We'll yeah I think that'd be possible with a loop continuously creating and deleting particle systems on the player as he moves around, although I think It'd be very difficult to make the particle effect seem smooth as most of the particle systems fade in...


RE: Make particle system follow player - JonnyAnomaly - 07-24-2013

Really I'm just looking for a fast and efficient way to have some fog around at all times. The main reason I wanted to have the fog follow the player was to keep the amount of particle systems down in an outdoor environment I have. To fill the map with particle systems would take a lot of performance, which is a shame because its nice to just have something moving between you and the environment.


RE: Make particle system follow player - Your Computer - 07-24-2013

A water monster that doesn't attack the player.


RE: Make particle system follow player - JonnyAnomaly - 07-24-2013

Haha, that is awesome, would never have thought of that!


RE: Make particle system follow player - ExpectedIdentifier - 07-24-2013

(07-24-2013, 11:35 PM)JonnyAnomaly Wrote: Haha, that is awesome, would never have thought of that!

If you just want constant fog, why not use a fog box? Unless that isn't the kind of fog you want (you said you wanted something moving in between you and the environment).


RE: Make particle system follow player - Statyk - 07-25-2013

You could also tweak the particle system start and end distances. I had to do this with a snow particle and when done right, it saved a ton on performance.


RE: Make particle system follow player - JonnyAnomaly - 07-25-2013

Yeah thats a point, I was wondering if I could just make it disappear from a distance. I'm using some global fog with culling too, which should help!


RE: Make particle system follow player - JonnyAnomaly - 07-26-2013

Do you know if its possible to make fog fade as you approach it using the values in the level editor for min start, min end, max start and max end? I've tried changing them but I can't see if its doing anything..


RE: Make particle system follow player - immaturegames - 08-02-2013

void StartPlayerSpawnPS(string& asSPSFile);
void StopPlayerSpawnPS();
That might me usefull Smile