The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

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

in Engine by (275 points)

1 Answer

0 votes

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.

by (40 points)

Can you give some example?

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?

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.

I need some very basic example.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.