Jump to content

Collision detection with transparent pixels


MichaelD
 Share

Recommended Posts

Hello,

 

I was wondering how could I implement collision detection and not when one of the sprites/images has transparent pixels (and these should not trigger overlap/collide). Consider the following image:

 

oktoGFX_5_zpsf63da3f5.png

 

So that should only trigger the overlap/collide when the ball touches the part of the oktagon where there is no transparency. Is this possible with Phaser and I would really appreciate an example or snipper or anything you can share.

 

Thanks.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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