q12q13 Posted February 16, 2018 Share Posted February 16, 2018 I don't understand may be it's a bug?! Using phaser-ce v 2.10.0 set world bounds (-400, -400, 800, 800) this.game.world.setBounds( -400, -400, 800, 800 ); then create a sprite at position -200, -200 let block = this.game.add.sprite( -200, -200, 'block' ); block.anchor.set( 0.5 ); this.game.physics.enable( block, Phaser.Physics.ARCADE ); block.body.collideWorldBounds = true; but in game world the sprite has position (0, 0) if collideWorldBounds = false; then ok, position is (-200, -200) if position is (200, 200) and collideWorldBounds = true then ok, position is (200, 200) Link to comment Share on other sites More sharing options...
Recommended Posts