[SOLVED] Adding clickable link in credits?

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
Rinzamakani
Regular
Posts: 74
Joined: Wed Aug 16, 2017 3:23 pm
Completed: Love's Apathy (Ciro route), A Frigid Space, Telechronic Static
Projects: Love's Apathy (Full)
itch: rinzamakani.itch.io
Contact:

[SOLVED] Adding clickable link in credits?

#1 Post by Rinzamakani »

Hello. I have a credits screen where I'd like to include links to the artists who composed the music used in the game I'm creating. The screen uses the code:

Code: Select all

screen credits():
    tag menu
    frame:
        background "images/whatever.png"
        vbox: #This puts the elements in a vertical box, you could use an hbox or a grid or a fixed, etc.
            text "Story/Writer: Rinzamakani"
            text "Programming: Rinzamakani"
            text "Music and Sound: Kai Engel, Junya Nishimura, Cellophane Sam, Osiris Saline, Myndra, Lucas King, Ramine, Hmix.net, natemarler, Kevin Macleod, ximian"
            text "Character design: Rinzamakani"
            text "Character art drawn by: Yusee"
            text "Backgrounds: Mukumuke, Sei.chan"
            text "GUI: zhaie.yuemn"
            textbutton _("Return") action Return()
Thing is, I'd like to organize this more and include links to composers' music on the credits screen so that the player can be directed to the artist's page like this:

Ambient Music: Kai Engel
http://freemusicarchive.org/music/Kai_Engel/

Is there any way to do this?
Last edited by Rinzamakani on Thu Apr 12, 2018 2:56 pm, edited 1 time in total.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Adding clickable link in credits?

#2 Post by rayminator »

it should be something like this

Code: Select all

text _("Made with {a=https://www.renpy.org/}Ren'Py{/a} [renpy.version_only].\n\n[renpy.license!t]")

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

Re: Adding clickable link in credits?

#3 Post by Ocelot »

You can use good old a tag: https://www.renpy.org/doc/html/text.htm ... -text-tags
Or you can make link text in textbutton instead of text displayable.
< < insert Rick Cook quote here > >

User avatar
Rinzamakani
Regular
Posts: 74
Joined: Wed Aug 16, 2017 3:23 pm
Completed: Love's Apathy (Ciro route), A Frigid Space, Telechronic Static
Projects: Love's Apathy (Full)
itch: rinzamakani.itch.io
Contact:

Re: Adding clickable link in credits?

#4 Post by Rinzamakani »

rayminator wrote: Thu Apr 12, 2018 2:21 pm it should be something like this

Code: Select all

text _("Made with {a=https://www.renpy.org/}Ren'Py{/a} [renpy.version_only].\n\n[renpy.license!t]")
This works great. Thank you for the help. :)

User avatar
Rinzamakani
Regular
Posts: 74
Joined: Wed Aug 16, 2017 3:23 pm
Completed: Love's Apathy (Ciro route), A Frigid Space, Telechronic Static
Projects: Love's Apathy (Full)
itch: rinzamakani.itch.io
Contact:

Re: Adding clickable link in credits?

#5 Post by Rinzamakani »

Ocelot wrote: Thu Apr 12, 2018 2:22 pm You can use good old a tag: https://www.renpy.org/doc/html/text.htm ... -text-tags
Or you can make link text in textbutton instead of text displayable.
Thanks for helping! :D

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

Re: [SOLVED] Adding clickable link in credits?

#6 Post by Imperf3kt »

You can also use an imagebutton, if you wanted to get more fancy.

Code: Select all

imagebutton hover "hover.png" idle "idle.png" action OpenURL(https://www.renpy.org/)
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

Post Reply

Who is online

Users browsing this forum: No registered users