Juan J. Sánchez
Sponsor
I've been coding in ruby for over a year now, and I'm usually self sufficient, but I'm really clueless right now.
I made a nice load/save scene and I suddenly thought, "Maybe I can add some preview screenshots from the moment when you last saved, that way the player can easily remember his save file and where he left the game." I had no problem with the screenshots. When the player is about to save, he creates a temporary PNG file which contains the screenshot from where he left the game. Theoretically, when he saves, the game should create a copy of the temporary file and rename it "Screenshot ##". I can't simply rename the temporary file because it prevents the game from taking screenshots, in example, of the status menu, if the player revisits the menu screen more than once before accessing the save screen. Also, we must keep in mind the player might want to save in more than one file.
I'm really helpless. If someone could tell me how to copy a file, how to save an image file (RMXP won't let me dump bitmaps, I already tried) or how to work a way around this, I'd be really grateful. Cheers.
I made a nice load/save scene and I suddenly thought, "Maybe I can add some preview screenshots from the moment when you last saved, that way the player can easily remember his save file and where he left the game." I had no problem with the screenshots. When the player is about to save, he creates a temporary PNG file which contains the screenshot from where he left the game. Theoretically, when he saves, the game should create a copy of the temporary file and rename it "Screenshot ##". I can't simply rename the temporary file because it prevents the game from taking screenshots, in example, of the status menu, if the player revisits the menu screen more than once before accessing the save screen. Also, we must keep in mind the player might want to save in more than one file.
I'm really helpless. If someone could tell me how to copy a file, how to save an image file (RMXP won't let me dump bitmaps, I already tried) or how to work a way around this, I'd be really grateful. Cheers.