Repository navigation
Particle Documentation
nasafrasa edited this page Apr 15, 2023
·
4 revisions
All of these properties change each particle from the generator.
The lifespan of each particle (in beats), cannot be under 1 beat due to hardcoded limitations.
PS.particle.life = 2; // Each particle will have a lifetime of 2 beatsThe distance of how far each particle will travel over its life.
PS.particle.distance = 5; // Each particle will travel a distance of 5The easing of each particle from start to end.
PS.particle.easing = "easeOutExpo"; // Each particle will have an easing of "easeInOutExpo"The direction of the note. Only works for "Note" generator type.
PS.particle.noteDirection = CUT.DOT; // Each particle will have a cut direction of a dot noteThe scale of the wall. Only works for "Wall" generator type.
PS.particle.wallScale = [2,2,2]; // Each particle will have wall scale of [2, 2, 2]Animates the dissolve of each particle.
PS.particle.animate.dissolve = [[0,0],[1,0.2],[0,1]]; // Each particle will have a dissolve animation of [[0,0],[1,0.2],[0,1]]Animates the dissolve of each particle's arrow. Only works for "Note" and "Bomb" generator type.
PS.particle.animate.dissolveArrow = [[0,0],[1,0.5],[0,1]]; // Each particle will have a dissolve arrow animation of [[0,0],[1,0.2],[0,1]]Animates the color of each particle.
PS.particle.animate.color = [[1,0,0,10,0],0,0,1,10,1]]; // Each particle will have a color animation of [[1,0,0,10,0],0,0,1,10,1]]Animates the scale of each particle.
PS.particle.animate.scale = [[1,1,1,0],[5,2,3,1]]; // Each particle will have a scale animation of [[1,1,1,0],[5,2,3,1]]Animates the rotation of each particle.
PS.particle.animate.rotation = [[0,0,0,0],[-90,-90,-90,1]]; // Each particle will have a rotation animation of [[0,0,0,0],[90,90,90,1]]Animates the local rotation of each particle.
PS.particle.animate.localRotation = [[0,0,0,0],[45,45,45,1]]; // Each particle will have a local rotation animation of [[0,0,0,0],[45,45,45,1]]