会用到这个吗?
life=2.8;// life of particle
seed_random(1,true);
delay=random(life);
if(time < delay){
age=0
seed=0
}else{
age=(time-delay)%life;
seed=math.floor((time-delay)/life)+3;
}
[seed,age]
min_speed=80; //minimum speed in y direction (pixels per second)
max_speed=110;
max_speed=100; //maximum drift in x direction
seed=Math.round(effect(“Point Control“).param(“Point“)[0];
age=effect(“Point Control“).param(“Point“)[1];
if(seed==0){
[0,-20,0]
}else{
seed_random(seed,true);
curr_speed=random(min_speed,max_speed)
drift=random(-max_drift,max_drift)
origin=[random(0,this_comp.width),-20,0);
origin+[age*drift,age*curr_speed,0);
} |