"Click to continue" icon for centered dialogue?
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.
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.
"Click to continue" icon for centered dialogue?
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?
- DannyGMaster
- Regular
- Posts: 113
- Joined: Fri Sep 02, 2016 11:07 am
- Contact:
Re: "Click to continue" icon for centered dialogue?
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:
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.
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."
The silent voice within one's heart whispers the most profound wisdom.
Re: "Click to continue" icon for centered dialogue?
Haha DannyGMaster you came to my rescue again, thanks so much for the help, you're the best! 
- DannyGMaster
- Regular
- Posts: 113
- Joined: Fri Sep 02, 2016 11:07 am
- Contact:
Re: "Click to continue" icon for centered dialogue?
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!Amie wrote:Haha DannyGMaster you came to my rescue again, thanks so much for the help, you're the best!
The silent voice within one's heart whispers the most profound wisdom.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]