Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

HBGames

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?

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top