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.
umineko wrote: ↑Sat Dec 10, 2022 2:31 am
Hi, thought I'd like to share a little dilemma I've come into.
I've managed to implement a voice replay button in my history screen, but I don't know how to place it in the quick menu. It would look like this:
Screenshot_20221210_012707.png
For reference, here is the a snippet of the code used on the history screen:
if h.voice and h.voice.filename:
text what line_spacing 10
imagebutton:
idle "gui/button/voice.png"
hover "gui/button/voice_hover.png"
action Play("voice", h.voice.filename)
hovered Play("system2", "audio/system/sysse_select.ogg")
xpos 1450
I can't place it in the quick menu screen, so I was wondering if there is another way. Thanks in advance!
Making a button (text button, image button...) and prescribe her a Voice response action ().
Usually it is better to put it either in the quick menu or in the dialog box, and so that it does not interfere, we need to set a condition. As a result , we get
The button can be clicked continuously, even if there is no voice file for the current line of dialogue. It would replay the last voice file, until a line with a voice file comes up.
umineko wrote: ↑Sun Dec 11, 2022 2:39 am
The code works great! There's just one issue
The button can be clicked continuously, even if there is no voice file for the current line of dialogue. It would replay the last voice file, until a line with a voice file comes up.
umineko wrote: ↑Sun Dec 11, 2022 2:39 am
The code works great! There's just one issue
The button can be clicked continuously, even if there is no voice file for the current line of dialogue. It would replay the last voice file, until a line with a voice file comes up.