Jump to content

ParticleStorm pixel emitter


Recommended Posts

Hey All,


So  im using the pixel emitter:

    this.pixelEmitter = Config.particleManager.createEmitter(Phaser.ParticleStorm.PIXEL);    this.pixelEmitter.renderer.pixelSize = 2;
    this.image = Config.particleManager.createImageZone('heart');    this.pixelEmitter.emit('basic', 1200,0, { zone: this.image, full: true, spacing: 2, setColor: true });

And my canvas is 1280x640 with a scrolling tilemap,

but everything will get clipped after the coordinates exceed the original canvas size 1280x640:




How can i prevent this and use the emitter in the whole map?



Link to comment
Share on other sites

8 hours ago, rich said:

Fix the emitter to the camera, so it remains on-screen all the time. If you need it to move with the camera then that's a different problem entirely (and one not easily solved really)

this.pixelEmitter.renderer.display.fixedToCamera = true

Displays the effect everywhere indeed, but does not give the desired effect with a scrolling map

think i somehow need to give each particle a x,y offset depending on startlocation of the camera

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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