Hi,
I’m trying to mask sprites using a cookie cutter technique on the sprite’s source bitmap, but I can’t figure out how to do it. Here’s my example bitmap that I’m using as a sprite’s image.
When two sprites overlap, I want to cut out the shape of the sprite from one of those two sprites. I can get the sprite to draw in all black (or all white) using…
pd->graphics->pushContext(_bitmap1);
pd->graphics->setDrawMode(kDrawModeFillBlack);
pd->graphics->drawBitmap(_bitmap2, 0, 0, kBitmapUnflipped);
pd->graphics->popContext();
pd->sprite->markDirty(_sprite1);
…but I want to cut it out and leave the area transparent. I thought there would be a “kDrawModeFillTransparent”, but there isn’t.
Is there another way to achieve this?
Thanks,
Rich.

