You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This function generates a new array of particle sprites to attach to the emitter.
168
-
*
169
-
* @paramGraphicsIf you opted to not pre-configure an array of Sprite objects, you can simply pass in a particle image or sprite sheet.
170
-
* @paramQuantityThe number of particles to generate when using the "create from image" option.
171
-
* @paramBakedRotationsHow many frames of baked rotation to use (boosts performance). Set to zero to not use baked rotations.
172
-
* @paramMultipleWhether the image in the Graphics param is a single particle or a bunch of particles (if it's a bunch, they need to be square!).
173
-
* @paramCollideWhether the particles should be flagged as not 'dead' (non-colliding particles are higher performance). 0 means no collisions, 0-1 controls scale of particle's bounding box.
174
-
*
175
-
* @returnThis Emitter instance (nice for chaining stuff together, if you're into that).
168
+
*
169
+
* @paramGraphicsIf you opted to not pre-configure an array of Sprite objects, you can simply pass in a particle image or sprite sheet.
170
+
* @paramQuantity {number} The number of particles to generate when using the "create from image" option.
171
+
* @paramBakedRotations {number} How many frames of baked rotation to use (boosts performance). Set to zero to not use baked rotations.
172
+
* @paramMultiple {boolean} Whether the image in the Graphics param is a single particle or a bunch of particles (if it's a bunch, they need to be square!).
173
+
* @paramCollide {number} Whether the particles should be flagged as not 'dead' (non-colliding particles are higher performance). 0 means no collisions, 0-1 controls scale of particle's bounding box.
174
+
*
175
+
* @returnThis Emitter instance (nice for chaining stuff together, if you're into that).
* @paramExplodeWhether the particles should all burst out at once.
323
-
* @paramLifespanHow long each particle lives once emitted. 0 = forever.
324
-
* @paramFrequencyIgnored if Explode is set to true. Frequency is how often to emit a particle. 0 = never emit, 0.1 = 1 particle every 0.1 seconds, 5 = 1 particle every 5 seconds.
325
-
* @paramQuantityHow many particles to launch. 0 = "all of the particles".
321
+
*
322
+
* @paramExplode {boolean} Whether the particles should all burst out at once.
323
+
* @paramLifespan {number} How long each particle lives once emitted. 0 = forever.
324
+
* @paramFrequency {number} Ignored if Explode is set to true. Frequency is how often to emit a particle. 0 = never emit, 0.1 = 1 particle every 0.1 seconds, 5 = 1 particle every 5 seconds.
325
+
* @paramQuantity {number} How many particles to launch. 0 = "all of the particles".
0 commit comments