Gallery unlocks screen.

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
Minuteman
Regular
Posts: 40
Joined: Sat Feb 24, 2018 2:02 pm
Location: On duty
Contact:

Gallery unlocks screen.

#1 Post by Minuteman »

Hello, I have a question about gallery screen.
I want instead of opening a picture, show a another screen. (Sorry if this sounds dumb....)
( There is little of what I wanted to do )
g.button("01")
if persistent.01=="yes":
*show screen*
So if you unlock and press to this button, you will open a another screen.
This is possible in gallery statement?...
of the people for the people

User avatar
Minuteman
Regular
Posts: 40
Joined: Sat Feb 24, 2018 2:02 pm
Location: On duty
Contact:

Re: Gallery unlocks screen.

#2 Post by Minuteman »

Bump?.....
of the people for the people

philat
Eileen-Class Veteran
Posts: 1900
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Gallery unlocks screen.

#3 Post by philat »

Your question is impossibly broad. Yes, it's possible. No one's going to write it for you from scratch.

User avatar
Minuteman
Regular
Posts: 40
Joined: Sat Feb 24, 2018 2:02 pm
Location: On duty
Contact:

Re: Gallery unlocks screen.

#4 Post by Minuteman »

philat wrote: Tue Sep 18, 2018 7:07 pm Your question is impossibly broad. Yes, it's possible. No one's going to write it for you from scratch.
I was not asking to "write from a scratch"
I just don't know which statement I should use for showing screen there.
of the people for the people

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: Gallery unlocks screen.

#5 Post by IrinaLazareva »

in this case, it is much simpler to use screen's language instead of standard Gallery's function.

https://renpy.org/doc/html/screens.html ... -statement
https://renpy.org/doc/html/screens.html#grid
https://renpy.org/doc/html/screen_actions.html#ShowMenu
https://renpy.org/doc/html/screen_actions.html#If

the sketch:

Code: Select all

screen mgallery():
    tag gall
    #something....
    if persistent.endone:
        imagebutton idle 'img.png' action ShowMenu('gone')
    ##etc

screen gone():
    tag gall
    #whatever

Post Reply

Who is online

Users browsing this forum: Google [Bot], UltraRik