
I got a system for CtC with a little icon to appear (the yellow triangle), but I can't for the life of me figure out how to get a sound effect to play when the player clicks.
Code: Select all
define jL = Character("Jui", window_style="leftwindow", callback=midvoice, color="#7187D1", ctc="ctc", ctc_pause="ctc", ctc_position="fixed")
image ctc:
"gui/button/ctc.png"
yalign 0.9 xalign 0.5
linear 0.75 alpha 1.0
linear 0.75 alpha 0.0
repeat
Bonus points:
Using {w=.05} in dialogue allows the text to hold for a second, as it should, but the current CtC setup makes the icon appear during the wait, disappear when text resumes, and reappear when the text ends finally. I want it to only appear at the end of ALL the dialogue, not just while the cps is running.
BONUS Bonus points:
I'd like this to be a button that can animate. I know how to do the animations just fine, it's buttons I don't understand, particularly how to associate them with a character definition so it appears per character (needs to be like there are two dialogue boxes, one on each side). Even if this is a design people won't generally like, I wanna know how to do it and see how it feels.
In summary:
Need a button that has to be clicked to continue, doesn't disappear on wait {w=0.5}, and-- most importantly-- makes a *click!* noise when progressing text.