playMaker

Author Topic: How to make overlapping sprites transparent?  (Read 1102 times)

blazingriver

  • Playmaker Newbie
  • *
  • Posts: 26
How to make overlapping sprites transparent?
« on: August 06, 2015, 01:37:36 PM »
Hi,
My game consists of a rotating circle outline, almost like a hollow planet, with a player on the surface. It is an endless style game, so the player is stationary, and only the circle moves (super mario galaxy style, but 2D). The 'obstacle' in the game are holes/gaps in the surface. This game is targeted for the mobile platform.

My current method uses white coloured sections of the circle rotating over the stationary to give an illusion of the player moving, and to give the illusion of the holes. However, as my background is coloured (not a single colour, but a variation of different colours), this wont work.

My question is: is there anyway to make a transparent 'ghost' sprite with a collider move over another sprite (the circle), causing transparency in the other sprite (the circle) where the sprites overlap (so if the 'ghost' sprite only overlaps the corner of another sprite, only the corner of the other sprite becomes transparent)?

Thanks in advance :)