Move a particle emitter that spans over the screen

Hello everybody,

I’m using a particle emitter that has a horizontal span defined like this:

const particleEmitter = particles.createEmitter({
        y: 0,
        x: { min: 0, max: 800 },
    });

However, when I move the particle emitter, it loses its span and start emitting from a point. I feel stupid but I can’t figure out how to keep the emitter span while moving it :thinking:

Thank you in advance for any help and I apologize if this is a trivial problem.

Have a great day!

Something like particleEmitter.setPosition({ min: 0, max: 800 }, 300);

1 Like

Wow, that was so obvious… thank you very much Milton, problem solved!