• Add Review
  • Subscribe
  • Nominate
  • Submit Media
  • RSS
Alpha channel mask with scrolling effect.
  • orochii
  • Added: 11/11/2018 02:52 PM
  • Last updated: 04/19/2024 08:16 PM
  • 3016 views

Posts

Pages: 1
I'm dying to know how you did alpha masking. The get_pixel function/set_pixel function for bitmaps is too slow, and yours is running great.
Basically, I didn't use get_pixel/set_pixel. Working with bitmaps via Ruby/RGSS is painfully slow. You need to write a DLL, which then makes the necessary changes through C/++. Then after writing your own custom DLL, calling functions through RGSS's Win32API.

Here is some reference information. https://forum.chaos-project.com/index.php?topic=15430.0
You'll need some experience with C or C++ programming though. But it's doable.
Wow! That's way out of my league. It's amazing that you can do that.
I used to say that some years ago. xD
Nevertheless, if you want to animate stuff with plain old ruby, there is a lot you can do playing around with the sprite's source rectangle. ;^)

I also shared this DLL along with some wrapping code somewhere (and the source for the DLL). I'll post it here later.
Do you mean, the source code? I have very little experience with C++, so I doubt I'd understand it, but I'd love to try. (I thought you needed a graphics library to manipulate bitmaps... C++ can do that with native libraries?)
From C++ you can access the bitmap data as simple structs, you just need to include some structs definitions that other friendly people provided for anyone to use (there is several versions of the same code so... yeah, you can get it from the link I put before, you can also DL my thing here while my script submission gets approved).

So yeah, all is done with native libraries. This means that if you want to do something, you must code the actual algorithm, but at the same time I think that's part of the fun hahaha!
I really love this screen <3 everything looks so clean, also, +10 for any form of train in a video game
This screen is for testing, but yeah there is train.
Pages: 1