likon Posted June 9, 2015 Report Share Posted June 9, 2015 Hi I want to create a particles that burst and collide with a floor (static body object)I've tried different thing bot non of that worked.How I can do that. Can someone provide some simple example? Cheers,Robert Quote Link to comment Share on other sites More sharing options...
likon Posted June 10, 2015 Author Report Share Posted June 10, 2015 really no one??? Quote Link to comment Share on other sites More sharing options...
drhayes Posted June 10, 2015 Report Share Posted June 10, 2015 Have you looked at the particles collision example? http://phaser.io/examples/v2/particles/collision Quote Link to comment Share on other sites More sharing options...
likon Posted June 10, 2015 Author Report Share Posted June 10, 2015 Yeah, I tried many options non of them worked... I will post my code when I'll get back home... Quote Link to comment Share on other sites More sharing options...
likon Posted June 10, 2015 Author Report Share Posted June 10, 2015 I got something like this, and it doesn't work.this.emitter.makeParticles('ball');this.emitter.gravity = 1200;this.emitter.minParticleSpeed.set(-200, -200);this.emitter.maxParticleSpeed.set(600, 600);this.blow = false;this.physics.arcade.enable(this.platform);this.physics.arcade.collide(this.emitter, this.platform);//this.platform.body.immovable = true;this.platform.body.allowGravity = false; any idea how to make it collide with the platform? Quote Link to comment Share on other sites More sharing options...
likon Posted June 10, 2015 Author Report Share Posted June 10, 2015 Ha did it. collide should be in update function Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.