Mask images not working...

Keep in mind the mask rules:  evenly divisible by 4 on each dimension and at least 3 black pixels on all borders.

Rob

Yes… Bingo.

You used to be able to just “setMask” to a new mask file and it would flip to that mask.

Now you have to put a “setMask(nil)” between sets.

So old way used to work:

newScreen.touchBkgd:setMask( "someMask.png" ) ... some code here ... newScreen.touchBkgd:setMask( "someOtherMask.png" )

And now you have to…

newScreen.touchBkgd:setMask( "someMask.png" ) ... some code here... newScreen.touchBkgd:setMask( nil ) newScreen.touchBkgd:setMask( "someOtherMask.png" )

Anyway – wanted to document that here incase anyone else runs into it. :wink:

Yeah –  I knew the mask file was OK because I was using the flashlight mask file to test. :wink:

The culprit posted above … you must setMask (nil) between mask changes.  That’s a “newer thang”. :wink: