+1 vote

I want to create an effect that looks like this: https://www.youtube.com/watch?v=i__ZPdR47uk

So I made a Particle2D, set the texture to a thin triangle that I made, and set the emission mask to be a rectangle sprite with the same dimensions as the screen and set it to spawn particles on the border. Then Radial Accel is set to -1 in hopes that the triangles would point to the center, but it actually points to the top left. Is there a way to center the emission mask or set it up some other way so that the triangles would go to the center?

Edit: More of a workaround than a solution. I set up the emission mask texture to just cover the bottom and right borders of the image, then set it as the emission mask of the Particle2D. This will make the triangles only spawn on the bottom and right sides and they'll all point to the top left corner. Then make 3 copies of the Particle2D and flip them, and now you have all 4 pointing to the middle!

in Engine by (113 points)
edited by

1 Answer

0 votes

Interesting workaround!
I think it can also be done by having a texture with a single triangle looking at the center, and then spawning it at random angles with emission shape 'point'

by (24 points)
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.