I'm trying to find a way to alpha-mask a viewport. I've learned to handle bitmaps and sprites, including planed sprites, but I can't seem to come up with a way to mask viewports. I have another script lined up that would be absolutely amazing if I could break the rectangular shape of a viewport. I don't need fading opacity, a hard cut would be good enough.
I'm not looking for a script, just a thought or idea on how this could be possible.
I've thought about trying to do a pixel-by-pixel z mask... but that's even less probable than a straightforward mask. The only other thought suggested was rewriting the rect() defintion. As ugly as that sounds, I'd be willing to try it. Does anyone know how to rewrite the rect definition in Ruby?