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.
local circle = display.newCircle(60, 60, 80);
circle:setClip(clip_rect);
[/code]
A polygon shape could be *very* helpful in this case. I don’t know how hard it’d be to add this feature into Corona, especially using OpenGL. There’s glScissor but it’s only for static rectangle (can’t be rotated from what I know).
Tom [import]uid: 4566 topic_id: 429 reply_id: 300429[/import]
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.
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. [import]uid: 10484 topic_id: 429 reply_id: 8934[/import]