BenSan

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. A solution in case any one else has this problem: It works with nested groups. Just resize the child group and it won't scale the sprite when rotating. -> http://phaser.io/sandbox/TMaGcVgL/play function create() { var parentGroup = game.add.group(); var childGroup = game.add.group(); parentGroup.add(childGroup); var sprite = childGroup.create(0, 0, 'phaser'); childGroup.width = 100; childGroup.height = 300; parentGroup.x = 400; parentGroup.y = 200; } function update() { childGroup.angle += 0.5; }
  2. Thank you @drhayes yes actually I wanted to scale the whole group. I just wasn't aware that it would stretch the image/sprite when I'd rotate it. But it makes sense, I'm guessing because it's non-uniformly scaled.
  3. When width and height is set of a group, and a child sprite within is rotated, then said sprite gets stretched. Is this intended behaviour? I'm using Chrome ( Version 52.0.2712.0 canary ) on Windows with Phaser 2.4.6 Example: http://phaser.io/sandbox/zGrSberY/play function create() { var sizedGroup = game.add.group(); sprite = sizedGroup.create(0, 0, 'phaser'); sizedGroup.width = 100; sizedGroup.height = 100; sizedGroup.x = 200; sizedGroup.y = 200; } function update(){ sprite.angle += 0.6; }