Jump to content

Overlap bounds


guy
 Share

Recommended Posts

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

  • 4 months later...
 Share

  • Recently Browsing   0 members

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