[SOLVED] Button for 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
4listair
Newbie
Posts: 11
Joined: Tue Jul 31, 2018 10:54 pm
Contact:

[SOLVED] Button for Dialogue

#1 Post by 4listair »

I'm trying to add a button that'll pop up at the end of dialogue like a next button, but I can't find anything already in Ren'Py code to do that. Any advice?
Last edited by 4listair on Fri Aug 03, 2018 3:08 am, edited 1 time in total.

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

Re: Next Button for Dialogue

#2 Post by Imperf3kt »

Do you perhaps mean like a Click To Continue?
https://www.renpy.org/doc/html/screen_s ... o-continue

In the text field, you can use an image tag
text = "{image="myfile.png"}"
Or just an image you define like any other
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

4listair
Newbie
Posts: 11
Joined: Tue Jul 31, 2018 10:54 pm
Contact:

Re: Next Button for Dialogue

#3 Post by 4listair »

Imperf3kt wrote: Tue Jul 31, 2018 11:52 pm Do you perhaps mean like a Click To Continue?
https://www.renpy.org/doc/html/screen_s ... o-continue

In the text field, you can use an image tag
text = "{image="myfile.png"}"
Or just an image you define like any other
Ahh! Thanks! That seems to be working!

Also, just in case, this is what my code ended up looking like:

Code: Select all

screen ctc(arg=None):

    zorder 100

    text _("{image=ctc.png}"):
        xalign 0.98
        yalign 0.98

Post Reply

Who is online

Users browsing this forum: No registered users