"Click to continue" icon for centered dialogue?

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
Amie
Regular
Posts: 28
Joined: Tue Jun 06, 2017 4:48 am
Contact:

"Click to continue" icon for centered dialogue?

#1 Post by Amie » Tue Jun 13, 2017 3:32 am

Hi everyone! So I've just implemented a CTC icon which appears after character and narrator dialogue, but the CTC icon won't appear if the dialogue is 'centered' on the screen, is there a way to change this?

User avatar
DannyGMaster
Regular
Posts: 113
Joined: Fri Sep 02, 2016 11:07 am
Contact:

Re: "Click to continue" icon for centered dialogue?

#2 Post by DannyGMaster » Tue Jun 13, 2017 9:08 am

You can define your own custom centered screen.

For this you create a new Character, set the dialogue Window to have no background and change it's xalign and yaling to 0.5, effectively placing it in the center. It would end up like this:

Code: Select all

define centered = Character(ctc="ctc_icon.png", window_background=None, window_xalign=0.5, window_yalign=0.5)

label start:
         centered "Centered text with Click to Continue."
Note that this will overwrite the default centered character, if you don't want that simply give your new character a different name, like 'centered_ctc'. Also notice I had the ctc to be a single image for the sake of simplicity, but it can (and should, for better visual effect) be an animated screen.
The silent voice within one's heart whispers the most profound wisdom.

User avatar
Amie
Regular
Posts: 28
Joined: Tue Jun 06, 2017 4:48 am
Contact:

Re: "Click to continue" icon for centered dialogue?

#3 Post by Amie » Tue Jun 13, 2017 10:56 am

Haha DannyGMaster you came to my rescue again, thanks so much for the help, you're the best! :D

User avatar
DannyGMaster
Regular
Posts: 113
Joined: Fri Sep 02, 2016 11:07 am
Contact:

Re: "Click to continue" icon for centered dialogue?

#4 Post by DannyGMaster » Tue Jun 13, 2017 1:56 pm

Amie wrote:Haha DannyGMaster you came to my rescue again, thanks so much for the help, you're the best! :D
Actually, I have to thank you, I never would have thought of adding a ctc to centered until I saw your question and decided to try it myself, I'm glad it worked! :D
The silent voice within one's heart whispers the most profound wisdom.

Post Reply

Who is online

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