• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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