Jump to content

collide within custom bounds - Phaser


garethquirke
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

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