As part of my game's saving system, I want to take a screenshot of an area, minus certain sprites, and minus the controls, for use as the save's thumbnail.
When the game is saving, the screen will be on a menu screen, which I could do as a canvaslayer, or however else it makes sense given what i want to do. I know how to set all of the things I want to be visible or invisible appropriately, and know how to take a screenshot, I just don't know how to do it in a way that the player won't see a few frames of the game looking wrong, without the GUI and certain other graphical elements.
I tried setting everything invisible, taking the screenshot, and setting it as visible again within the same frame, but, as I expected, it captures the frame that is currently displayed when the process starts, and so it captured a normal frame.
Thank you for your help!