Pause menu including a screenshot of where you are?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Sleepy
Regular
Posts: 136
Joined: Wed Nov 27, 2013 6:12 pm
Projects: Camera Anima
Organization: EXP-resso Mutt
Tumblr: sleepy-does-games.tumblr.com
itch: https://expressomutt
Contact:

Pause menu including a screenshot of where you are?

#1 Post by Sleepy »

I've been playing through Steins; Gate 0 recently and I really liked how they handled to pause/menu screen (pictured below). When you pause the game or open up the menu, it zooms out to with a screencap of where you were and then zooms back in when you return to the game.
Image
It got me thinking of designing something similar for my game. I think it's technically possible, since by default, when you save in ren'py it saves a screenshot and allows you to overwrite it when you make a new save. However, I'm unsure of how to get that to work in practice. Does anyone have any ideas or tips for implementing something like this?
W.I.P.

Image

Complete

Image Image

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Pause menu including a screenshot of where you are?

#2 Post by Ocelot »

< < insert Rick Cook quote here > >

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Pause menu including a screenshot of where you are?

#3 Post by Imperf3kt »

Ocelot wrote:YOu can try this function: https://www.renpy.org/doc/html/other.ht ... screenshot
That's unfortunately not very helpful, what do you do with the screenshot? How could you place it in the screen and delete it after?
Last edited by Imperf3kt on Tue Mar 12, 2019 9:14 am, edited 1 time in total.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

naomimyselfandi
Newbie
Posts: 15
Joined: Sun Mar 19, 2017 10:50 pm
Contact:

Re: Pause menu including a screenshot of where you are?

#4 Post by naomimyselfandi »

How's your experience with screens? Are you asking for just how to get the screenshot there, or do you need help creating the screen itself?

User avatar
Sleepy
Regular
Posts: 136
Joined: Wed Nov 27, 2013 6:12 pm
Projects: Camera Anima
Organization: EXP-resso Mutt
Tumblr: sleepy-does-games.tumblr.com
itch: https://expressomutt
Contact:

Re: Pause menu including a screenshot of where you are?

#5 Post by Sleepy »

I'm somewhat familiar with screens, but I've never tried creating a whole game menu. Based on the coding, it's not hard to transfer over some things to a new game menu (such as, "tag menu", "use game_menu", "use navigation") but the hardest part I'm having problems with is how to get the screenshot there and then delete it when you unpause (as Imperf3kt put it).

The save system uses "FileAction" and has "FileScreenshot" to save a screenshot, but I'm stuck on how you'd implement something like that.

EDIT: Currently have a basic "pause" screen set up (since creating a game menu was surprisingly easier than I thought it would be). Atm, it's mostly the getting the screenshot of where the player is now.
W.I.P.

Image

Complete

Image Image

Post Reply

Who is online

Users browsing this forum: No registered users