Setting screenshot as background of another existing room

M4nu

Member
Hello GMC!

I want the game at one point to freeze a full screenshot that gets instantly added as background for another existing room. I'm thinking I can use:

screen_save("screenshot.png");

and

if (file_exists("screenshot.png"))

but I'm not sure of the rest. Maybe I can use room_set_background somehow.

Any advise on how to, with DnD icons or code?
 

YoSniper

Member
You would probably want to follow up with background_add.

The only downside to this approach is that you would probably want to free up the memory later with background_replace and background_delete at the end. That, and I don't know how you would manage the external file "screenshot.png" in case a user could mess with it in the interim and potentially cause errors.
 
Top