Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make particle system follow player
JonnyAnomaly Offline
Member

Posts: 179
Threads: 20
Joined: Nov 2012
Reputation: 14
#1
Make particle system follow player

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 (?)
07-24-2013, 09:26 PM
Find
Artyom Offline
Senior Member

Posts: 370
Threads: 27
Joined: Jul 2012
Reputation: 11
#2
RE: Make particle system follow 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...

- Inactive account -
07-24-2013, 10:55 PM
Find
JonnyAnomaly Offline
Member

Posts: 179
Threads: 20
Joined: Nov 2012
Reputation: 14
#3
RE: Make particle system follow player

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.
07-24-2013, 11:08 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Make particle system follow player

A water monster that doesn't attack the player.

Tutorials: From Noob to Pro
07-24-2013, 11:27 PM
Website Find
JonnyAnomaly Offline
Member

Posts: 179
Threads: 20
Joined: Nov 2012
Reputation: 14
#5
RE: Make particle system follow player

Haha, that is awesome, would never have thought of that!
07-24-2013, 11:35 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#6
RE: Make particle system follow player

(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).

Closure ModDB page:

[Image: 16LO8Sx]
07-24-2013, 11:45 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#7
RE: Make particle system follow player

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.
07-25-2013, 08:58 AM
Find
JonnyAnomaly Offline
Member

Posts: 179
Threads: 20
Joined: Nov 2012
Reputation: 14
#8
RE: Make particle system follow player

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!
07-25-2013, 06:30 PM
Find
JonnyAnomaly Offline
Member

Posts: 179
Threads: 20
Joined: Nov 2012
Reputation: 14
#9
RE: Make particle system follow player

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..
07-26-2013, 07:22 PM
Find
immaturegames Offline
Junior Member

Posts: 18
Threads: 1
Joined: Apr 2013
Reputation: 0
#10
RE: Make particle system follow player

void StartPlayerSpawnPS(string& asSPSFile);
void StopPlayerSpawnPS();
That might me usefull Smile
08-02-2013, 10:00 PM
Find




Users browsing this thread: 2 Guest(s)