1
\$\begingroup\$

I'm making a 2D top view game (same perspective as the game Forager) in Unity. I want the game to be visually appealing, and want to add some details like dust particles. Whenever the character moves, I want dust-like particles trailing behind the character, almost as if the character is kicking up dust.

So something like this:

enter image description here

enter image description here

The particles are a little big in Forager, but this is similar.

I've used Unity's trail renderer before, but I only used it for making a straight line, and not multiple random particles like this. What should I do to achieve this effect?

Just general guidelines would be okay. I don't necessarily need a complete code, just some guidance because I don't know how to start.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Particle system with simulation space as world and emission over distance instead of time might be a start. \$\endgroup\$
    – Zibelas
    Jan 13, 2022 at 12:17

1 Answer 1

4
\$\begingroup\$

Attach a particle system to the character. Set "Simulation Space" to "World" instead of "Local", so the particles stay behind when the player with the particle system moves. You can use the "Emission over Distance" property to make the particle system only emit particles while the character is moving.

When you are using the URP or HDRP and feel adventurous, then you can alternatively use the new, graph-based particle system.

\$\endgroup\$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .