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
gdevelop5:objects:particles_emitter [2018/07/20 15:32]
4ian
gdevelop5:objects:particles_emitter [2019/06/13 08:45] (current)
piyushpalawat99 [Examples]
Line 1: Line 1:
 # Particles emitters # Particles emitters
  
-Particles emitters are used to display a large number of small particles, so as to simulate effects ​like _fireexplosion ​and many more_.+<note tip>​**See it in action!** 🎮\\ 
 +[[#​Examples|I would rather see the Particles emitters object examples! Please take me there now.]] 
 +</​note>​ 
 + 
 +Particles emitters are used to display a large number of small particles. They simulate effects ​in a game. A few examples of particle emitters are fire, explosions, smoke, and dust.
  
 {{ :​gdevelop5:​objects:​particles-emitters-preview.png?​nolink |}} {{ :​gdevelop5:​objects:​particles-emitters-preview.png?​nolink |}}
  
-Particle ​Emitter ​allows to change ​large number ​of parameters.+The Particles ​Emitter ​object can be configured with multitude ​of different ​parameters ​to create the desired effects.
  
-## Examples ​+## Particles kind 
 +To use the Particle Emitter, create a new object from the Objects list. A panel will open:
  
-<note tip>​**See it in action!** 🎮\\ +{{ :​gdevelop5:​objects:​addnewobject-particlesemitter.png?nolink |}}
-Open these examples online.</​note>​+
  
-* https://​editor.gdevelop-app.com/?​project=example://​particles-explosions 
-* https://​editor.gdevelop-app.com/?​project=example://​particles-various-effects 
  
-## Particles ​kind+Select "Particles ​Emitters"​ from the list.
  
-3 rendering mode are available: Points, Lines and Textured.+A new panel will pop up. This panel contains the properties that can be set for your emitter. You will need to scroll down to view all of the properties ​available ​for the emitter.
  
-The first mode will display circles with the specified size. +{{ :​gdevelop5:​objects:​particleemitterspanelofchoices.png?​nolink |}} 
-The second ​will display lines with the specified length and thickness. + 
-The last mode will display an image with the specified size.+//There are 3 rendering modes available for Particle Emitters: Points, Lines and Textured.//​ 
 + 
 +Points ​modewill display circles with the specified size. 
 +Lines mode,  ​will display lines with the specified length and thickness. 
 +Textured ​modewill display an image of the specified size.
  
 ## Colors ## Colors
  
-* You can choose a starting color for particles, and a color to fade to. You can also choose a starting ​and final value for the transparency.+* You can choose a starting color for particles, and a color to fade to. You can also choose a starting ​final value for the object'​s ​transparency.
  
 ## Direction of emission ## Direction of emission
  
-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 ​in the scene editor ​as 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.
  
 * Particles appears in a sphere, around the position of the emitter object. You can change the radius of the sphere. * Particles appears in a sphere, around the position of the emitter object. You can change the radius of the sphere.
-* Gravity can be applied on particles, on X and Y axis. For example, a negative value on Y axis will cause the particles to go up in the air. +* Gravity can be applied on particles, on X and Y axis. For example, a negative value on the Y-axis will cause the particles to go up in the air. 
-* Friction influences particles deceleration over time+* Friction influences particles deceleration over time.
  
 ## Lifetime ## Lifetime
  
-* Each particle ​have a limited lifetimechosen randomly between two values ​which can be changed. +* Each particle ​has a limited lifetime ​that is chosen randomly between two values. These two values ​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. If the emitter is fixed to a number, the emitter will stop emitting after reaching ​the set 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 by the object ​on the screen. Note that this number changes the memory taken by the emitter. ​//If this number is too big, it can cause the game to crash.//
  
 +
 +## Examples ​
 +
 +<note tip>​**See it in action!** 🎮\\
 +Open these examples online.</​note>​
 +
 +
 +[[https://​editor.gdevelop-app.com/?​project=example://​particles-explosions|{{:​gdevelop5:​objects:​particleemitterexplosionsnew.png?​nolink|}}]]
 +
 +* https://​editor.gdevelop-app.com/?​project=example://​particles-explosions
 +
 +[[https://​editor.gdevelop-app.com/?​project=example://​particles-various-effects|{{:​gdevelop5:​objects:​particleemitervariousnew.png?​nolink|}}]]
 +
 +* https://​editor.gdevelop-app.com/?​project=example://​particles-various-effects