newSwitch strange behaviour

@sgs - Don’t be sorry.  Has the guideline changed? 

https://docs.coronalabs.com/api/library/graphics/newMask.html#image-mask-requirements

If so, one of us should ask that the docs be updated.

I don’t know if you intended to, but you example is divisible by 4 :wink:

So it is!  I think it all changed when “power of 2” image requirements stopped being a thing.

In DC I have over 700 masks and they are just asset size + 4px each edge.

To be honest, with a base tile size of 72x36px my width is always dividable by 4, but height is only occasionally.

Ok, oh great and powerful wizards.

Would either of you like a quick contract to build that imageSheet for me (since I keep spinning my wheels)?  I’ve built the radio buttons and checkbox (as well as slider and buttons), but this one has got me.  Let me know how much and where to send (paypal or CC in advance is fine), and I’ll email you what I’ve done, which will give you the colors and general idea.

Thanks

Dave

@Davida6,

Are your assets arranged as discrete images?  I’m asking because I’d like to see them as discrete images before saying whether I can help on this.  i.e. I’d like to experiment with them first before committing.

Regardless, if I decide I can help, this would probably be a level-1 hit: https://forums.coronalabs.com/topic/69420-hire-a-hitman-problem-solver-is-back/

If you do have the images as discrete graphics, you can send them to me at the address on the post linked above.

Graphics sent.

Thanks

Dave