I want to add a Mask to a TextObject but i dosent work because :setMask is nil for textObjec.
But the parent of textObject is DisplayObject ? Why i cant setMask ? is there anyother way ?
I want to add a Mask to a TextObject but i dosent work because :setMask is nil for textObjec.
But the parent of textObject is DisplayObject ? Why i cant setMask ? is there anyother way ?
I’ll let somebody from Corona Labs correct me if I’m wrong, but text objects are masked to begin with - that’s how Corona generates them, by applying a mask to a rect that results in the text appearing on screen. So that’s why you’d be unable to apply a mask. You could, however, put the text object into a display group and mask that group, as a workaround.
Jason is right. Text objects are masked rectangles. Using some other grouping feature (group, container, snapshot) and mask that.
Rob
I’ll let somebody from Corona Labs correct me if I’m wrong, but text objects are masked to begin with - that’s how Corona generates them, by applying a mask to a rect that results in the text appearing on screen. So that’s why you’d be unable to apply a mask. You could, however, put the text object into a display group and mask that group, as a workaround.
Jason is right. Text objects are masked rectangles. Using some other grouping feature (group, container, snapshot) and mask that.
Rob