garethquirke Posted March 12, 2017 Share Posted March 12, 2017 Okay so I have a rectangle boundary and I have 4 circles. Each of which I want to collide within this boundary. Is there a way to collide each sprite within this boundary without using p2? var rectangleBoundary = new Phaser.Rectangle(0, 120, 900, 1800); var c1 = game.add.sprite(200, 350, 'qcircle'); var c2 = game.add.sprite(500, 190, 'qcircle'); var c3 = game.add.sprite(120, 30, 'qcircle'); var c4 = game.add.sprite(590, 120, 'qcircle'); Link to comment Share on other sites More sharing options...
garethquirke Posted March 12, 2017 Author Share Posted March 12, 2017 Solved in one line game.physics.arcade.setBounds(0, 120, 900, 500); Link to comment Share on other sites More sharing options...
Recommended Posts