Godot Game Engine


Godot provides a particles system. You can use particles system for simulate complex physical effects such as sparks, fire, magic particles, smoke, mist, magic, etc. The idea is that a particle is emitted at a fixed interval and with a fixed lifetime. Lifetime is a kind of delay at the end of which each single particle is deleted. During his lifetime, every particle will have the same base behavior. What makes every particle different and provides a more organic look is the randomness associated to each parameter. In essence, creating a particle system means setting base physics parameters and then adding randomness to them.

  1. For example, to add particles to our bat, or your element, go to its scene and add the Particles2D nodes by pushing the new file icon . On the windows select the Particles2D node and confirm with Create button.

    You can see already your element with particles on the main window. Now we have to adapt the particles to our fit.
    First, usually, graphic designer like to load a texture to change the point to the texture one.
  2. In the Inspector window you can play with parameter to customize the particles.
  3. In Configyou can play with the direction, the speedness, the spreanetc. See the wiki page on github for know each option.
    Note that your change doesn't affect the particles gravity wich is a hudge help.
  4. In Parametersyou can configure all the details for your particles and if you want randomnesssee after Params.
  5. In Color you can add a color or a gradient. You can add your value on hexadecimal or in RVB mode. If you want more than one color, click on the triangle just after Color Ramp. A gradient open and enter yours stops colors.

First you see a black and white gradient. Each click add a stop color. To edit the color, click on the right square to enter an new rgb color.

In Node2D you can position the particles relatively to the owner 

There are many options to tweak particles. We advise to make test and find the best result. For example, in CanvasItem, you can decide of the visibility of the particles and the material used. For example, you can put the particles behind or not the element. Or if you want the particles dont' moved with the element, don't forget to desactivated local space parameter.
You can also decide to emit particles only when the user make an action, then you have to creat an animation with particles on and the end of the action with particles none. Of course, the programer have think in this option in his script, to explain that this animation was correlated to the name of the animation.

Il y a une erreur de communication avec le serveur Booktype. Nous ne savons pas actuellement où est le problème.

Vous devriez rafraîchir la page.