Frictional Games Forum (read-only)

Full Version: Make particle system follow player
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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 (?)
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...
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.
A water monster that doesn't attack the player.
Haha, that is awesome, would never have thought of that!
(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).
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.
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!
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..
void StartPlayerSpawnPS(string& asSPSFile);
void StopPlayerSpawnPS();
That might me usefull Smile
Pages: 1 2