Jump to content

Phaser Particle Storm - Move emitter


NumbOfAthma
 Share

Recommended Posts

  • 2 months later...

I found a way to move the actual position of the renderer (In this example, it is a Pixel renderer, but this may apply to other renderers too). Here you can set things like x/y coords and anchor:

let manager = game.plugins.add(Phaser.ParticleStorm);

let emitter = manager.createEmitter(Phaser.ParticleStorm.PIXEL);
    emitter.renderer.display.x = 250;
    emitter.renderer.display.y = 700;
    emitter.renderer.display.anchor.setTo(0.5, 0.5);

Note that by doing this, the position of any particles made by this emitter will be relative to the display x/y.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...