Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop:documentation:manual:built_particle [2018/05/27 09:00]
4ian
gdevelop:documentation:manual:built_particle [2020/06/01 08:34] (current)
rapperdinesh [Emission zone and direction]
Line 3: Line 3:
 {{gdevelop:​documentation:​manual:​particlesexample.png?​nolink|}} {{gdevelop:​documentation:​manual:​particlesexample.png?​nolink|}}
  
-This extension provides the **Particle Emitter object**, which allows to display a large number of small particles, so as to simulate effects like //fire, explosion and many more//.+This extension provides the **Particle Emitter object**, which allows ​us to display a large number of small particles, so as to simulate effects like //fire, explosionand many more//.
  
 ===== Editing the object ===== ===== Editing the object =====
Line 11: Line 11:
 ==== Rendering mode ==== ==== Rendering mode ====
  
-3 rendering mode are available: Points, Lines and Quad.\\+3 rendering mode are available: Points, Linesand Quad.\\
 The first mode will display points with the specified size.\\ The first mode will display points with the specified size.\\
 The second will display lines with specified thickness, and a length that will vary according to the length specified and the speed of the particle.\\ The second will display lines with specified thickness, and a length that will vary according to the length specified and the speed of the particle.\\
-The last mode will display image with the specified size.\\+The last mode will display ​the image with the specified size.\\
 You can also choose if the particles must be rendered using standard or additive mode. You can also choose if the particles must be rendered using standard or additive mode.
  
 ==== Particles ==== ==== Particles ====
  
-* Each particle ​have a limited lifetime, chosen randomly between two values which can be changed. +* Each particle ​has a limited lifetime, chosen randomly between two values which can be changed. 
-* The quantity ​of particles contained in the emitter ("​tank"​) can be unlimited or fixed to a number, in which case the emitter will stop emitting after reaching this number of particles. +* The number ​of particles contained in the emitter ("​tank"​) can be unlimited or fixed to a number, in which case the emitter will stop emitting after reaching this number of particles. 
-* The flow is the number of particles created every seconds. You can enter -1 to fire all particles in a single shot.+* The flow is the number of particles created every second. You can enter -1 to fire all particles in a single shot.
  
-You can also change the maximum number of particles rendered on screen by the object. Note that this number changes the memory taken by the emitter. If this number is really huge, it can cause the game to crash.+You can also change the maximum number of particles rendered on the screen by the object. Note that this number changes the memory taken by the emitter. If this number is really huge, it can cause the game to crash.
  
 __Simple setup__\\ __Simple setup__\\
-You can choose a starting color for particles, and color to fade to.+You can choose a starting color for particles, and color to fade to.
  
 __Advanced setup__\\ __Advanced setup__\\
-Each particle ​have a red, green, blue component. For each of them, you can choose if the value must be fixed (in which case you can enter the value in the box below), if the value must be randomly ​choosen ​(in which case, you can choose the minimum and maximum using the two boxes) or if the value must be changed over the time (in which case, you can also choose the minimum and maximum using the two boxes).+Each particle ​has a red, green, blue component. For each of them, you can choose if the value must be fixed (in which case you can enter the value in the box below), if the value must be randomly ​chosen ​(in which case, you can choose the minimum and maximum using the two boxes) or if the value must be changed over the time (in which case, you can also choose the minimum and maximum using the two boxes).
  
 You can also choose a starting and final value for the transparency.\\ You can also choose a starting and final value for the transparency.\\
-Size and angle of particles can also be customized in the same way. You can in addition choose if these values must changed over the time or take a random value when they are created.+The size and angle of particles can also be customized in the same way. You can in addition choose if these values must be changed over time or take a random value when they are created.
  
 ==== Emission zone and direction ==== ==== Emission zone and direction ====
  
  
-Particles ​appears ​in a sphere, around the position of the emitter object. You can change the radius of the sphere.+Particles ​appear ​in a sphere, around the position of the emitter object. You can change the radius of the sphere.
  
 __Simple setup__\\ __Simple setup__\\
-Particles will be emitted in the direction represented by the angle of the emitters on the scene. You can change the angle of the spray cone, which is also represented on the scene editor by two lines: a large value for this spray cone will result in emission of particles in a large number of directions. A value of 0 will emit particles only in a single direction.+Particles will be emitted in the direction represented by the angle of the emitters on the scene. You can change the angle of the spray cone, which is also represented on the scene editor by two lines: a large value for this spray cone will result in an emission of particles in a large number of directions. A value of 0 will emit particles only in a single direction.
  
 __Advanced setup__\\ __Advanced setup__\\
-Particles will be emitted in a direction. This direction is characterized by its value on X, Y and Z axis ( like forces, with an additional Z axis representing depth ).\\+Particles will be emitted in a direction. This direction is characterized by its value on X, Y and Z axis ( like forces, with an additional Z-axis representing depth ).\\
 A direction using values like 1;0;0 will thus be the same as a direction using values like 5;0;0 A direction using values like 1;0;0 will thus be the same as a direction using values like 5;0;0
  
-You can also personalize two angle which describe a portion of a sphere.\\ +You can also personalize two angles ​which describe a portion of a sphere.\\ 
-For example ​:\\+For example \\
 0 et 6.28 will define a complete sphere, meaning particles will be thrown in all directions.\\ 0 et 6.28 will define a complete sphere, meaning particles will be thrown in all directions.\\
 0 et 0 will throw particles only in the specified direction.\\ 0 et 0 will throw particles only in the specified direction.\\
 3.14 and 3.14 will create a disc.\\ 3.14 and 3.14 will create a disc.\\
 1.57 and 1.57 will define a cone of angle 1.57 radians ( 90° )\\ 1.57 and 1.57 will define a cone of angle 1.57 radians ( 90° )\\
-<note important>​These angles are in radians : PI(=3.14159) radians is equal to 180°</​note>​+<note important>​These angles are in radians: PI(=3.14159) radians is equal to 180°</​note>​
  
-You can finally choose the force of the emission, by choosing a minimal and maximal value.+You can finally choose the force of the emission, by choosing a minimal and maximal value.
  
 ==== Gravity and friction ==== ==== Gravity and friction ====