0 votes

My specific case is that i want to draw a permanent directed trace on the floor when my character does dash. So, I tried setting process_material.anglee from code beffore each dash. Problem is, it affects all particles, including already emitted, so already drawn trace on floor messes up. Is there some other way maybe?

Godot version 3.2.3
in Engine by (20 points)
edited by

1 Answer

0 votes

Check Material/<YourMaterial>/Resource/LocalToScene. This way each copy of this material will have it's own parameters (independent from others). Or if you need to have multiple synchronized copies of material and only one different for dash, then you need to create new material for dashes only.

by (1,188 points)

I edited my question to try to be more specific. I know that particle material might be shared resource, what I meant is I want to change parameters for new particles without affecting already emitted.
I change anle and EVERY particle emitted from this Particle2D node changes

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 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 webmaster@godotengine.org with your username.