Getting bitmap from spriteset

Status
Not open for further replies.

Jono99

Veteran
Veteran
Joined
May 8, 2015
Messages
76
Reaction score
17
First Language
English
Primarily Uses
RMVXA
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.
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
The 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?
 

Jono99

Veteran
Veteran
Joined
May 8, 2015
Messages
76
Reaction score
17
First Language
English
Primarily Uses
RMVXA
The 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.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,418
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
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.
 

Jono99

Veteran
Veteran
Joined
May 8, 2015
Messages
76
Reaction score
17
First Language
English
Primarily Uses
RMVXA
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.
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).

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.
Don't worry about that. I have my methods.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,107
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
This is Hime's script, and I used it for any mapshot requirements in all my Ace projects.
 
Last edited by a moderator:

Jono99

Veteran
Veteran
Joined
May 8, 2015
Messages
76
Reaction score
17
First Language
English
Primarily Uses
RMVXA
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!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
@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.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,189
Members
137,771
Latest member
evoque
Top