Jump to content

Are particles broken in latest CE? [Done]


s4m_ur4i
 Share

Recommended Posts

ANSWERED

Hi,
By updating the phaser 2.x version I stumbled upon >all particles are broken<.
this is the extended Phaser.Particles.Arcade.Emitter class:
as line7>> "this.start(false <- should revive a particle at the emitters position after "lifetime". it just doesn't do anything.
All particles are done once, and they do not repeat themselves anymore. Was there a breaking change I did not get?
note: The v2.7.x gravity change is not the case here


constructor (config: any, amount: number = 10) {
		super (config.game, config.x, config.y, amount);
		config.level.layers.effects.add(this);
		this.setYSpeed(-20, -200);
		this.setXSpeed(-5, 5);
		this.makeParticles('assets', 52);
		this.start(false, 100, 150, amount); //this should revive particles after lifespan(2), but doesn't
		console.log(this.children);
	}

Any thoughts?
regards
:)

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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