The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Script / Particle Editor] About Particle System Behavior
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#1
[Script / Particle Editor] About Particle System Behavior

I have a pretty good grasp of the Particle Editor, but I noticed something interesting. I've created this billowing smoke particle system (for the sake of experimentation), and when I use it ingame, and call the DestroyParticleSystem() function on it, the result is different depending on when the function was invoked.
There is a certain time period (about 5s, which is also (coincidentally?) the lifetime of the particles) during which the PS sprouts a bunch of particles, as if they accumulated "inside" it before the PS was created.
During this time, the call to DestroyParticleSystem() works, but the effect is delayed until this sprout period is over. On the other hand, if I wait for this to end (as I said, about 5s, and you can tell by the fact that after it occasional gaps begin to appear between the emitted particles), and then invoke DestroyParticleSystem(), the effect is instantaneous.
Why is this the case? Can this behavior be changed, or is it hard-coded into the engine?
I've attached the .ps file below, so that you can try it out yourself.


Attached Files
.rar   smoke.rar (Size: 1.07 KB / Downloads: 73)
12-01-2012, 09:52 PM
Find


Messages In This Thread
[Script / Particle Editor] About Particle System Behavior - by TheGreatCthulhu - 12-01-2012, 09:52 PM



Users browsing this thread: 1 Guest(s)