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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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