SignalSin Posted June 9, 2014 Share Posted June 9, 2014 Hi all! I'm trying to get a sprite to collide with the camera bounds using arcade physics. Essentially I'm looking for an equivalent (in terms of functionality, not necessarily syntax or what have you) of foo.body.collideWorldBounds, except for the camera bounds rather than the world bounds. I'm having trouble building my own method for this, so I'm wondering if an equivalent method exists, or what the method would be if it were to exist. Hope that makes sense! Thanks in advance for any help! Link to comment Share on other sites More sharing options...
wayfinder Posted June 9, 2014 Share Posted June 9, 2014 Make four sprites that are going to be your four walls, set them fixedToCamera and give them enough cameraOffset to place them outside your view. Now you can move the cam around and the players will not be able to leave the cam view. lewster32 and SignalSin 2 Link to comment Share on other sites More sharing options...
SignalSin Posted June 11, 2014 Author Share Posted June 11, 2014 Of course! Thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts