beakartJs Posted July 18, 2019 Share Posted July 18, 2019 I can't find the correct method, so I have one question. If I decrease the width of the sprite for example - from 48u to 32u then collision moves by 16u left - how could I center (align) the collision? (8u to left and 8u to right) this.sprite.body.width = 32; Link to comment Share on other sites More sharing options...
beakartJs Posted September 7, 2019 Author Share Posted September 7, 2019 I mean something like this: https://pasteboard.co/Iwk1y1n.png Anybody have an idea? Link to comment Share on other sites More sharing options...
beakartJs Posted September 7, 2019 Author Share Posted September 7, 2019 I found, offset: toolsGame.mainElements.player.obj.body.offset.x=8; Link to comment Share on other sites More sharing options...
Recommended Posts