Ultimately, I would like to prevent the transitions from showing if the same speaker talks back to back. My idea is to figure out how to define who_old, so that if who_old == who there is no transition but if who_old != who, there is a transition. However, I'm not sure how to do that. Here's what my screen code looks like:
Code: Select all
screen say(who, what):
if who is None:
add "gui/namebox.png":
pos(0.063,0.333)
window:
id "middle"
style "middle"
text what id "what"
if who == "b":
add "GUI/textbox/bottom2.png"
text what id "what"
if who == "b3":
add "GUI/textbox/bottom textbox.png"
text what id "what"
if who is not None and who != "b" and who != "b3" and who != playing_as and who != center_voice:
add "images/Right Tag.png" at nametag_in:
pos(0,.0151)
text who id "who"
window:
id "right"
style "right"
text what id "what"
if who == center_voice:
add "gui/namebox.png":
pos(0.063,0.333)
text who id "who"
window:
id "middle"
style "middle"
text what id "what"
if who == playing_as:
add "images/Left Tag.png":
pos(0,0.55)
window:
id "left"
style "left"
text what id "what"
##textbox transitions (an example of what I'd want)
transform nametag_in:
alpha 0.0
pause .05
alpha 0.4
ease_quad 0.2 alpha 1.0
transform nametag_out:
alpha 1.0
ease .3 alpha 0
transform narration_in:
alpha 0.0
ease .2 alpha 1.0
transform narration_tag_in:
alpha 0.0
ease .2 alpha 1.0Code: Select all
if who is None:
if who_old == who:
add "gui/namebox.png":
pos(0.063,0.333)
if who_old != who:
add "gui/namebox.png" at narration_tag_in ##(then I'd obviously define the exactly transition that I want):
pos(0.063,0.333)
if who_old == who:
window:
id "middle"
style "middle"
text what id "what"
if who_old != who:
window at narrator_in:
id "middle"
style "middle"
text what id "what"