Megalomaniak
Thanks, but not quite 🙁

I need to change the "mask", this:

Not problem doing on editor, but I need to change the "mask" it on the fly during the gamaplay

Megalomaniak

Thanks... but still, I lost 🙁

the tool "load emission mark"

Creates an array with points in "shape":

And I get the result:


note: the particles are start follow the cursor as cursor moves, using $Particles2D.set_emitting(true) when moving, false when stopped(just an eye candy)

If I change the texture with the same editor tool(a moon, for example):

The tool works fine, but I can't find a way to change this in code as easy as is in the editor. The only way I found is editon EACH point of the array...

Even if I know all the texture shapes in the game, the user is able to change this, so... Nearly impossible to edit point by point...

Thanks

Well, the editor tool is just the editor tool. It's not guaranteed to be available in the game runtime. Your one option would be to look at the editor source to see how they do it for the editor.

Yeah :/

I'm able to get the poolarray af a texture and change the "points" of emission:

Now I'll think a way to reduce this poolarray to just the "borders" as I need...

Thanks

    2 years later

    StormWFP thank you man, that saves a lost cause for me (only with the cpu one but is fine)