Is there a way to get a bitmap of a spriteset. I'm specifically trying to get a bitmap of Spriteset_Map because I need it for a script I'm working on. Any ideas? Also, I am aware of Graphics.snap_to_bitmap, but that will capture any UI elements that other scripts might overlay, so I can't use that.
Getting bitmap from spriteset
Learning Ruby and RGSSxThe spritesets aren't just one sprite, it's a collection of everything you see on the screen: Characters, the tilemap, balloon icons, animations, etc. What are you trying to accomplish with your script?
What I'm trying to do is create a custom map transition: fade in to a heavily blurred version of the exiting map, then fade to a heavily blurred version of the entering map, then fade to the entering map itself. eg. Transfer from map 1 to map 2 would fade to map 1 blurred, then to map 2 blurred, then to map 2.
I am aware of what spritesets truly are, but what I wanted to know is if there is a way to get a bitmap of all the sprites in said spritesets flattened like what happens when the frame is drawn, to use the general term.
I suggest you search for one of the "mapshot" scripts and see how they handled the data. Those scripts are intended to read the map data and save it as a bitmap - you can simply skip the saving bitmap step and use the data for other things like creating a blurred picture. I think Tsukihime is one of the scripters who has such scripts.
However, be aware that only one map exists at any one time - usually you'll have to transfer the player to the second map before you can access that maps data for a blurred version. It is possible to work around that, but it will increase the complexity of the programming.
However, be aware that only one map exists at any one time - usually you'll have to transfer the player to the second map before you can access that maps data for a blurred version. It is possible to work around that, but it will increase the complexity of the programming.
Thank you. I'll be sure to look into that. I have looked into a script like that in the past (not one of Tsukihime's though) and couldn't find what I was looking for so I'll be sure to look into that script if it exists (it does).
Don't worry about that. I have my methods.
This is Hime's script, and I used it for any mapshot requirements in all my Ace projects.
I did find that script just before you mentioned (which seems to be a running theme with times you help me), but thanks anyway!
@Jono99 Please do not quote whole posts just to indicate who you are answering. It makes the page slow to load and scroll down, especially for those accessing this on their phones. It can also make the thread confusing to read. If you want to make it clear who you are replying to, use the @membername convention as I have done in this post.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/getting-bitmap-from-spriteset.72294/