Smashman Posted March 14, 2014 Share Posted March 14, 2014 I am creating a game for a college project in phaser. I started creating in a few days ago, so 2.0 was not out. I have created the first few bits to make it work. Now that 2.0 has been released, the documentation has been updated to 2.0 so many of the things I was working on no longer work. For example, I have a circular sprite, so I would like to have a circular bounding box, however the setCircle method on a body has been removed. Another example, viewing body's bounds.game.debug.spriteBounds(sprite1);I have noticed that your examples even have this removed. Due to my having an invisible trigger location, I would like to be able to see this. Thanks. Link to comment Share on other sites More sharing options...
rich Posted March 14, 2014 Share Posted March 14, 2014 Please see this: https://github.com/photonstorm/phaser/blob/master/resources/Migration%20Guide.md All of the broken SAT stuff was removed from Arcade physics, if you need circles you have a few choices: 1) Don't upgrade 2) Use Ninja or P2 instead for a native Circle physics shape3) Create a custom Sprite and add a Phaser.Circle object to it, use that for triggers. Link to comment Share on other sites More sharing options...
Smashman Posted March 14, 2014 Author Share Posted March 14, 2014 Thanks for the help. P2 seems pretty great. Wondering about P2 materials and bounciness, however. Any help would be appreciated, thanks. Link to comment Share on other sites More sharing options...
rich Posted March 14, 2014 Share Posted March 14, 2014 I just uploaded a new example to both the Examples Repo and the Examples site showing how to use p2 contact materials. Link to comment Share on other sites More sharing options...
Smashman Posted March 14, 2014 Author Share Posted March 14, 2014 Much appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts