Jump to content

[Phaser 2.0.1] Arcade physics scaling bug


goshki
 Share

Recommended Posts

While preparing a test project for this topic, I've come across something that seems to be a bug. I can reproduce it on the code from arcade physics body scale example.

I've attached a zip file with the source code. Here are the steps to reproduce the bug on the body scale example code:

  • move the game.physics.enable(sprite, Phaser.Physics.ARCADE); line just below the sprite creation
  • set some scale (in my case 0.99)
  • comment out sprite.body.immovable = true;
  • comment out game.add.tween(sprite.scale).to( { x: 3, y: 3 }, 2000, Phaser.Easing.Linear.None, true, 0, 1000, true);

The effect is that the first sprite begins to move right and downward (if the scale was set to some value greater than one the movement would be left and upward).

phaser-arcade-scaling-example-with-bug.zip

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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