Repository navigation
Example Effects
nasafrasa edited this page Apr 12, 2023
·
21 revisions
Here are a few pre-made effects I made using the particle system. These are meant to be examples of how some effects are made and serve as inspiration or a basis for other effects you might make. I encourage you to play round with different properties of each effect, change the generator shape, change the color or scale animation, change the expansion, or anything property, and see what happens!
const fire = new ParticleSystem(0,100,600);
fire.generator.name = "FirePS";
fire.generator.shape = "Direction";
fire.generator.scale = [0,0,0];
fire.generator.position = [0.6,0,5];
fire.generator.expansion = [3,0,0];
fire.particle.life = 4;
fire.particle.distance = 6;
fire.particle.animate.color = [[1,1,1,1,0],[1,1,0,1,0.25],[1,0.5,0,1,0.5],[1,0,0,1,1]];
fire.particle.animate.dissolve = [[1, 0.1], [1, 0.7], [0, 1]];
fire.push(x => {
x.animate.localRotation = [[rand(0,180),rand(0,180),rand(0,180),0],[rand(0,180),rand(0,180),rand(0,180),1]]
});Placeholder text.
Placeholder text.
Placeholder text.
const stars = new ParticleSystem(0,0.02,400); // Creates a particle system at the time 0 and produces particles for 0.02 beats
stars.generator.name = "StarsPS"; // Gives the name "StarsPS" to the parent track of all particles
stars.generator.shape = "Sphere"; // Changes the generator shape to "Sphere"w
stars.generator.expansion = 7500; // The starting position of the particles will be 7500 units from the center of the sphere
stars.particle.distance = 7500; // The particles end 7500 units from the middle of the sphere
stars.particle.life = 1000; // The particles will last for 1000 beats.
stars.particle.animate.scale = [7.5,7.5,7.5]; // The scale of each particle will be [7.5,7.5,7.5]
stars.particle.animate.color = [100,100,100,100]; // The scale of each particle will be [100,100,100,100]
stars.push(); // Make the particle systemPlaceholder text.