0 votes

I have a Particle2D system, and I'd like to have the particles emit with a random alpha, but I can't seem to find a way to do this. (i.e., each particle will have a random alpha when it is emitted)

I'm looking for something like the following, but on a per-particle basis instead of something that affects the entire particle system:

extends Particles2D

var mat = self.get_process_material()

func _ready():

    mat.color = Color(1, 1, 1, rand_range(0, 1))

Is this possible in Godot?

asked Jun 4, 2019 in Engine by Novark (12 points)

Please log in or register to answer this question.

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.