(2D) how to bind a particle effect to the poition of a KinematicBody2D?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nona

is possible to bind a particle effect to the location of a KinematicBody2D?
i need my Player character to emit a little trail of particles, i have already connected them to the animation but when i load the scene the particles stay to the position 0,0 instead of having the player as an origin point.

:bust_in_silhouette: Reply From: Eric De Sedas

If you are using the Particles2D node, it’s only a matter of placing them as a direct child of your player character, and the particle trail should emit from their position.

Your scene should look something like this:

   - PlayerNode
      - Particles2D
      - AnimationPlayer

Note that for the particles to actually “trail” behind the player (and not just stick to them), you need to set the “local_coords” property to false.