Current scene as pause menu background

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
fsc
Regular
Posts: 36
Joined: Tue Jul 23, 2013 3:52 am
Projects: ALLBLACK; a new project incoming...
IRC Nick: fsc
Contact:

Current scene as pause menu background

#1 Post by fsc » Sat Apr 11, 2015 1:22 am

I forgot about this, this has been asked somewhere but I can't find it. :?

Simply put, how to make pause menu like this? Thanks. :D
Image

User avatar
KairuKyun
Veteran
Posts: 286
Joined: Thu Feb 12, 2015 4:10 pm
Completed: No One But You, Catch Canvas, Sickness, Written in the Sky, Wander no more, Warped Reality
Projects: Warped Reality
Organization: Unwonted Studios
IRC Nick: Kairu_kyun
Tumblr: karamuchan
Contact:

Re: Current scene as pause menu background

#2 Post by KairuKyun » Sat Apr 11, 2015 2:11 am

I did that like this
Tell your game to use the right click to show this menu

Code: Select all

    $ _game_menu_screen = "game_menu"
Screen code for the menu

Code: Select all

##########################
##Pause menu
screen game_menu:

    tag menu
  
    imagemap:
        
        auto "assets/UI/pause_%s.png"

        
        hotspot (575,130,133,53) action Return()
        hotspot (555,198,160,60) action ShowMenu("save")
        hotspot (575,265,125,55) action ShowMenu("load")
        hotspot (535,342,209,50) action ShowMenu("text_history")
        hotspot (565,410,152,59) action ShowMenu("preferences")
        hotspot (540,485,190,51) action MainMenu()

    
How it looks
https://drive.google.com/file/d/0B7tyzt ... sp=sharing
It has to be the size of your screen and you need a transparent background.
Hope this helps.
Kyle Tyner
Creator of Unwonted Studios
ktyner@unwontedstudios.co
Visit Our Website
Projects: No One But You, Sickness, Written in the Sky, Wander no more, Catch Canvas, Warped Reality

User avatar
fsc
Regular
Posts: 36
Joined: Tue Jul 23, 2013 3:52 am
Projects: ALLBLACK; a new project incoming...
IRC Nick: fsc
Contact:

Re: Current scene as pause menu background

#3 Post by fsc » Sat Apr 11, 2015 6:55 am

I thought about that too, it's not what I expected. :s
Let me rephrase and reillustrate the example.

Image

It's adaptive to active scene, and dynamic displayables are still playing over it, as if pause menu is just another layer.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Current scene as pause menu background

#4 Post by Donmai » Sat Apr 11, 2015 11:55 am

Open your options.rpy and look for a line similar to this:

Code: Select all

gm_root = "#dcebff", 
and change it to

Code: Select all

gm_root = Null(),
Your game menu background should become transparent.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
KairuKyun
Veteran
Posts: 286
Joined: Thu Feb 12, 2015 4:10 pm
Completed: No One But You, Catch Canvas, Sickness, Written in the Sky, Wander no more, Warped Reality
Projects: Warped Reality
Organization: Unwonted Studios
IRC Nick: Kairu_kyun
Tumblr: karamuchan
Contact:

Re: Current scene as pause menu background

#5 Post by KairuKyun » Sat Apr 11, 2015 1:06 pm

Sorry forgot to include that part :P
Kyle Tyner
Creator of Unwonted Studios
ktyner@unwontedstudios.co
Visit Our Website
Projects: No One But You, Sickness, Written in the Sky, Wander no more, Catch Canvas, Warped Reality

Post Reply

Who is online

Users browsing this forum: Bing [Bot]