mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 00:53:42 +00:00
Emitter.setScale fixed minX minY order presedence (thanks spayton)
This commit is contained in:
parent
07d43934c6
commit
aa72cf63c1
2 changed files with 2 additions and 1 deletions
|
@ -183,6 +183,7 @@ This fixes a bug in FF where it would use the default DOMMouseWheel (thanks @pns
|
|||
* Sprite.autoCull now properly works if the camera moves around the world.
|
||||
* Sprite.inCamera uses a much faster check if auto culling or world bounds checks are enabled and properly adjusts for camera position.
|
||||
* Camera.totalInView is a new property that contains the total number of Sprites rendered that have `autoCull` set to true and are within the Cameras view.
|
||||
* Emitter.setScale fixed minX minY order presedence (thanks spayton)
|
||||
|
||||
### Pixi 2.1.0 New Features
|
||||
|
||||
|
|
|
@ -663,7 +663,7 @@ Phaser.Particles.Arcade.Emitter.prototype.setScale = function (minX, maxX, minY,
|
|||
|
||||
this.autoScale = false;
|
||||
|
||||
if (rate > 0 && (minX !== maxX) || (minY !== maxY))
|
||||
if (rate > 0 && ((minX !== maxX) || (minY !== maxY)))
|
||||
{
|
||||
var tweenData = { x: minX, y: minY };
|
||||
var tween = this.game.make.tween(tweenData).to( { x: maxX, y: maxY }, rate, ease);
|
||||
|
|
Loading…
Reference in a new issue