Jump to content

Phaser.Physics.Arcade.Body - properties request ?


Mike
 Share

Recommended Posts

Well what do you think about adding two properties to body:

 

sprite.body.centerX

sprite.body.centerY

 

instead of writing: 

 

sprite.body.x + sprite.body.halfWidth

sprite.body.y + sprite.body.halfHeight

 

... ? 

 

That's all :P

 

p.s.

Also I was thinking of changing the body anchor like the sprite.x changes when you change the  sprite.anchor(0.5,0.5);

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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