|  | Re: Creating a explosion effect with expression by Dan Ebberts on Sep 19, 2012 at 10:00:58 pm |
Edit: oops--I forgot to use the "Code" tags. Updated below:
I think you just need to change the birth/life expression on the Point Control. This has everything start at the layer's in point:
lmin = 1.5; //minimum particle life
lmax = 2.5; //maximum particle life
i=1;
seed_random(i,true);
delay=random(lmax);
birth=delay;
death=delay;
t = time - inPoint;
if(t < delay){
[0,0]
}else{
while (t >= death){
i += 1;
seed_random(i,true);
birth=death;
life=random(lmin,lmax);
death += life;
}
[birth,life]
}
This one starts at a specific time (specified by tStart):
lmin = 1.5; //minimum particle life
lmax = 2.5; //maximum particle life
tStart = 1; // start at one second
i=1;
seed_random(i,true);
delay=random(lmax);
birth=delay;
death=delay;
t = time - tStart;
if(t<delay){
[0,0]
}else{
while (t >= death){
i += 1;
seed_random(i,true);
birth=death;
life=random(lmin,lmax);
death += life;
}
[birth,life]
}
Dan
| |