1

How can I create a masking effect that uses alpha instead of a hard edge when using SpriteKit?

I am aware of SKCropNode, but this is not what I need. I would like to create the equivalent of masking in Photoshop, or Illustrator where either opacity or greyscale is used to determine the transparency of the masked image.

Initially, I would like to use this to create a wipe effect, but there are various uses in the future.

I need it to be possible to animate as well.

enter image description here

Dustin
  • 409
  • 1
  • 4
  • 17
  • SKCropNode is exactly what you need, and if you put a SKCropNode as a mask for an SKCropNode, you get alpha cropping, not just on off cropping – Knight0fDragon Jun 30 '16 at 15:24
  • @Knight0fDragon I was not able to make your suggestion work. Could you provide some example code? – scribu Mar 31 '17 at 10:54
  • Possible duplicate of [SKCropNode masking edge anti-aliasing](http://stackoverflow.com/questions/20619378/skcropnode-masking-edge-anti-aliasing) – scribu Mar 31 '17 at 10:59

0 Answers0