Jump to content

setRectangle breaks collisions?


brejep
 Share

Recommended Posts

I'm converting a platform game to Phaser 1.2 / 2 and at a couple of points I have used setRectangle to change the size of the sprite's body.

 

This seems to break collisions with the ground, i.e. the sprite just falls through the floor. Is this because setRectangle clears shapes? If so do I need to do something to make the collisions work again after calling setRectangle?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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