Hi,
I looked through the doc to see if it was available, but it's not (correct me I'm wrong). It'd be nice to have some clipping functions, like a mask in flash.
Basically something like this :
1 2 3 4 | local clip_rect = display.newClipRect(50, 50, 100, 100); local circle = display.newCircle(60, 60, 80); circle:setClip(clip_rect); |
I want this too! Already wondered why that is not implemented yet...
How can one scroll something inside a rect on screen!? Or do I miss something?
I third that. Clipping masks would be great.
This is no substitute for such, but in some cases it could be handy: a way to scroll an image within an arbitrary window.
NOTE: requires game SDK as it uses spritesheets.
i fourth that.
i've seen amazing things made with masks in Flash. without even writing a single line of code. well, Flash has an IDE and lets you designate a layer as a mask layer. but a property like displayObject.mask=anotherDisplayObject would be great to have.
also suggested here.. http://developer.anscamobile.com/forum/2010/10/05/mask-capture-image
apparently something like that is coming.. :)
This would be great. Using it for simple things like energy bars would be a big help. I'm sure others could use it for more.
Any news on masking?
Any news on masking?, thanks
http://developer.anscamobile.com/forum/2010/11/15/magnifying-glass