Mask Scaling

Heya,

I'm struggling with a bit of maths (never a strong point of mine): I want to scale a bit map on a sprite, as I scale the sprite's parent group so that it aways covers the same proportion of the sprite.

I kinda assumed that if I scale the parent group by 0.5 (in this example I'm scaling both x and y uniformly), that not scaling the mask would be fine. However the mask appears to grow (or rather it doesn't seem to get scaled) as the image shrinks.

The next thing I've tried was setting the mask scale to 1/parentscale. So if I scale the parent group by 0.5 the mask scales up by 2. But that still doesn't look right.

Any ideas?

views:1563 update:2011/9/30 9:15:39
corona forums © 2003-2011