Need to add a dedication page

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
johnkim111
Newbie
Posts: 10
Joined: Fri Dec 25, 2015 4:03 pm
Contact:

Need to add a dedication page

#1 Post by johnkim111 » Fri Dec 25, 2015 4:12 pm

I want to add a main menu button leading to a dedication page.
In the dedication page, it could show only one image and get back to the title when clicked once.
Is it possible to do that?

Happy holidays!

User avatar
Kia
Eileen-Class Veteran
Posts: 1011
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: Need to add a dedication page

#2 Post by Kia » Sat Dec 26, 2015 1:50 am

use

Code: Select all

action ShowMenu("extras")
for a butoon to jump to a custom made menu and

Code: Select all

screen extras:
    tag menu
    window:
        style "gm_root"
    text "There's nothing extra in demo version." xalign 0.5 yalign 0.5
for your menu
you can copy this code in your screens and rename/modify things to your liking since it's ready and working

johnkim111
Newbie
Posts: 10
Joined: Fri Dec 25, 2015 4:03 pm
Contact:

Re: Need to add a dedication page

#3 Post by johnkim111 » Sat Jan 23, 2016 1:54 pm

Thanks. It worked!
How do I return to title page when clicked once on the extra pg?

Kia wrote:use

Code: Select all

action ShowMenu("extras")
for a butoon to jump to a custom made menu and

Code: Select all

screen extras:
    tag menu
    window:
        style "gm_root"
    text "There's nothing extra in demo version." xalign 0.5 yalign 0.5
for your menu
you can copy this code in your screens and rename/modify things to your liking since it's ready and working

User avatar
chocojax
Miko-Class Veteran
Posts: 702
Joined: Sun Oct 25, 2009 11:27 am
Completed: http://art.jphi.me/projects
Projects: Umbra, Familiarity, Maleficent Justice
Organization: spaceNote
Tumblr: chocojax
Github: jenniferphi
Location: California
Contact:

Re: Need to add a dedication page

#4 Post by chocojax » Sat Jan 23, 2016 2:13 pm

Add this:

Code: Select all

    use navigation
(I'm assuming you're using the default renpy layout right now. If you're not, replace "navigation" with whatever your menu screen is.)

johnkim111
Newbie
Posts: 10
Joined: Fri Dec 25, 2015 4:03 pm
Contact:

Re: Need to add a dedication page

#5 Post by johnkim111 » Sat Jan 23, 2016 2:22 pm

YES! It worked! Thanks.
One last question. How do I replace (text "There's nothing extra in demo version.") to an image?
chocojax wrote:Add this:

Code: Select all

    use navigation
(I'm assuming you're using the default renpy layout right now. If you're not, replace "navigation" with whatever your menu screen is.)

User avatar
Kia
Eileen-Class Veteran
Posts: 1011
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: Need to add a dedication page

#6 Post by Kia » Sat Jan 23, 2016 2:30 pm

there is a whole page of information you'll going to need sooner or later. http://renpy.org/doc/html/screens.html

johnkim111
Newbie
Posts: 10
Joined: Fri Dec 25, 2015 4:03 pm
Contact:

Re: Need to add a dedication page

#7 Post by johnkim111 » Sat Jan 23, 2016 3:03 pm

Okay my picture is showing now, but menu button is invisible.

screen extras:
tag menu

use navigation
use file_picker

window:
style "gm_root"

frame:
style_group "gm_nav"
xalign .98
yalign .98

has vbox

textbutton _("Return") action Return()

image "extrapage.png."

User avatar
Kia
Eileen-Class Veteran
Posts: 1011
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: Need to add a dedication page

#8 Post by Kia » Sat Jan 23, 2016 3:10 pm

your image covered it so does the window, put it in a lower line than the image to show on top

johnkim111
Newbie
Posts: 10
Joined: Fri Dec 25, 2015 4:03 pm
Contact:

Re: Need to add a dedication page

#9 Post by johnkim111 » Sat Jan 23, 2016 3:18 pm

Thank you. It worked!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]