How to limit particle to sprite border?

Hey Folks,

I’m trying to do a specific effect on Gdevelop.

Imagine a sprite like this:

And a basic particle like this:

By using fusion mode, i’m able to obtain this effect on sprite:

What i’m trying to do, is to limit the particle emission and effect to the sprite border. To give you an idea, i make this very basic on GIMP ;):

Is this possible to do such a thing by using a specific effect on layer or object, or maybe a tips ?

Thanks a lot for your ideas and help!

Hi,
you can set the shape of the particles, the angle of their flow etc. but you cannot - afaik - make them flow in a complex shape as in case of your sprite.

I have 2 suggestions:

  1. You could try sprite masking. The particles emitter is masked with the sprite object. I tried it and it works quite well.


    If the sprite moves you just have to move the particle-emitter as well and make sure that the lifetime of the particles is not too long (to avoid possible performance problems).

  2. You just animate the particle effect in your sprite and play the frames.

2 Likes

Thanks a lot Drona, it work great :slightly_smiling_face:

I will make some test, but it seems to follow animation when mask apply, and i will follow your advice about movement.

Cheers