Emitter.minParticleScale and maxParticleScale wasn't resetting the Body size correctly.

This commit is contained in:
photonstorm 2014-04-09 00:59:53 +01:00
parent 8fc2a465cd
commit e764be430e
3 changed files with 4 additions and 1 deletions

View file

@ -116,6 +116,7 @@ Bug Fixes
* SoundManager.boot will check to see if the AudioContext was created before carrying on (thanks @keyle, fix #669)
* Fixed bug where move up and move down method in groups did not work (thanks @jonthulu, fix #684)
* Fixed bug in Group.next when cursor is at the last child (thanks @jonthulu, fix #688)
* Emitter.minParticleScale and maxParticleScale wasn't resetting the Body size correctly.
ToDo

View file

@ -396,6 +396,8 @@ Phaser.Particles.Arcade.Emitter.prototype.emitParticle = function () {
particle.scale.set(this.game.rnd.realInRange(this.minParticleScale, this.maxParticleScale));
}
particle.body.updateBounds();
if (this.width > 1 || this.height > 1)
{
particle.reset(this.game.rnd.integerInRange(this.left, this.right), this.game.rnd.integerInRange(this.top, this.bottom));

View file

@ -200,7 +200,7 @@ Phaser.Tween.prototype = {
* @param {boolean} [autoStart=false] - Whether this tween will start automatically or not.
* @param {number} [delay=0] - Delay before this tween will start, defaults to 0 (no delay). Value given is in ms.
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as Number.MAX_VALUE. This ignores any chained tweens.
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself when it completes.
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.
* @return {Phaser.Tween} This Tween object.
*/
to: function (properties, duration, ease, autoStart, delay, repeat, yoyo) {