guy Posted March 22, 2015 Share Posted March 22, 2015 Hi I have a sprite with an animation, I'm having a problem detecting overlaps between 2 sprites, because the player animation bounds is bigger than the real visible sprite. http://yesplanet.hostrick.co.il/media/assets/carriage.png This is the tile map i'm using. My question is: can I set the sprite bounds to be smaller so it will detect overlap only when the 2 items are visibly overlap and not just based on the width/height that include transparent area. i'm detecting overlap this way:this.game.physics.arcade.overlap(this.player, this.batsGroup, this.collisionHandler);thanks in advance Link to comment Share on other sites More sharing options...
Flink Posted August 5, 2015 Share Posted August 5, 2015 Had this problem, got here through Google, then found a solution. The answer might be too late for you, but for future people getting here through Google: body.setSize does the trick for me! Tilde 1 Link to comment Share on other sites More sharing options...
Recommended Posts