" />

gb.collideBitmapBitmap

DESCRIPTION


Checks pixel by pixel if two bitmaps are overlapping.

SYNTAX


gb.collideBitmapBitmap(x1, y1, b1, x2, y2, b2);

 

PARAMETERS


  • x1: horizontal coordinate of the first bitmap
  • y1: vertical coordinate of the first bitmap
  • b1: first bitmap
  • x2: horizontal coordinate of the second bitmap
  • y2: vertical coordinate of the the second bitmap
  • b2: second bitmap

RETURNS


  • true: if the two bitmaps have at least one overlapping pixel
  • false: if the bitmaps are not overlapping

0