cikamika

Members
  • Content Count

    1
  • Joined

  • Last visited

Everything posted by cikamika

  1. var rectGraphics = new Phaser.Graphics( this.game, 0, 0 );rectGraphics.beginFill( 0xFF0000 );rectGraphics.drawRect( 0, 0, 100, 100 );rectGraphics.endFill();mySprite = this.game.add.sprite( 100, 100 );mySprite.addChild( rectGraphics );mySprite.width and mySprite.height always returns 32, but the graphics dimensions are 100x100? mySprite.getBounds() and mySprite.getLocalBounds() are also set to 32x32. How do you get Phaser to return proper dimensions?