likon Posted June 9, 2015 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 Link to comment Share on other sites More sharing options...
likon Posted June 10, 2015 Author Share Posted June 10, 2015 really no one??? Link to comment Share on other sites More sharing options...
drhayes Posted June 10, 2015 Share Posted June 10, 2015 Have you looked at the particles collision example? http://phaser.io/examples/v2/particles/collision Link to comment Share on other sites More sharing options...
likon Posted June 10, 2015 Author 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... Link to comment Share on other sites More sharing options...
likon Posted June 10, 2015 Author 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? Link to comment Share on other sites More sharing options...
likon Posted June 10, 2015 Author Share Posted June 10, 2015 Ha did it. collide should be in update function Link to comment Share on other sites More sharing options...
Recommended Posts