How to add an icon in the game?

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
Jogabba
Newbie
Posts: 7
Joined: Thu Dec 07, 2017 8:09 pm
Contact:

How to add an icon in the game?

#1 Post by Jogabba »

Hi, I'm a pretty new to Ren'py, so I think this should be an easy question.

I want to put an icon in a corner on the screen that links to my website. This icon should be visible and clickable through all the game, except for some scenes.

Anyone could explain me how could I do this?

Thanks in advance!

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
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: How to add an icon in the game?

#2 Post by Donmai »

The "icon" you refer to should be an imagebutton (https://www.renpy.org/doc/html/screens.html#imagebutton) inside a new screen, which will perform the action (https://www.renpy.org/doc/html/screen_a ... ml#OpenURL) you want.
That new screen which contains the imagebutton (https://www.renpy.org/doc/html/screens. ... n-language) can be shown or hidden whenever you want.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Jogabba
Newbie
Posts: 7
Joined: Thu Dec 07, 2017 8:09 pm
Contact:

Re: How to add an icon in the game?

#3 Post by Jogabba »

Oh okay, I'll give it a try. Thank you very much!

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

Re: How to add an icon in the game?

#4 Post by Imperf3kt »

For simplicity / design aesthetic, it might be prudent to simply place it in the quick menu.
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: Bing [Bot], Google [Bot]