How to make smoke (for i.e. from smoke grenade or from campfire)?

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

How to make smoke in Godot? And how to make player invisible for enemies if he hidden from them by smoke?

:bust_in_silhouette: Reply From: nightrobin

You can use Particles for the smoke.
You can increase the number of particles to hide the player but if a Ray trace the player they are not really hidden. You can make them really hidden by set_visible(false) in the code too.

Can you give some example?

Robotex | 2020-09-09 05:31

You can make them really hidden by set_visible(false)

In third person shooter it will be ugly solution.

I can use some ‘hidden’ property but how to detect moment when to set/unset it?

Robotex | 2020-09-09 05:34

Regarding the moment of when to set it, take note how much time until the smoke covers the player before setting the set_visible to false. This will prevent the sudden invisibility of the player.

In terms of third person shooter, I don’t have much experience with it. You can look for Shaders to accomplish it, I think.

nightrobin | 2020-09-09 07:19

I need some very basic example.

Robotex | 2020-09-09 12:28