When Character A is speaking and is on the left portion of the screen, the speech bubble faces said character. But when Character B arrives, his namebox appears without Character A's namebox disappearing and the speech bubble turns to face him instead along with the changing of the corresponding image of the speech bubble.
I was wondering if there is a way how to let the other namebox stay while the other character is speaking?
Here's what I've done so far, I defined two characters, one for the left and one for the right, both using the same image.
Code: Select all
define yuki = Character("Mochizuki, Yuki", callback=speaker("Mochizuki, Yuki"), who_color="#1E3D54", image="yuki", namebox_background = "gui/box/namebox.png", window_background="gui/box/blue_L.png")
define yuki_flip = Character("Mochizuki, Yuki", callback=speaker("Mochizuki, Yuki"), who_color="#1E3D54", image="yuki flip", namebox_background = "gui/box/namebox.png", window_background="gui/box/blue_R.png")
Code: Select all
image yuki flip shy= im.Flip("images/sprites/yuki/yuki_shy.png", horizontal=True, xalign=1.0)
image yuki shy= Image("images/sprites/yuki/yuki_shy.png", horizontal=True, xalign=0.0)
Code: Select all
style namebox: #left
xpos 10
xalign 0.0
xsize gui.namebox_width
ypos gui.name_ypos
ysize gui.namebox_height
padding gui.namebox_borders.padding
style namebox2: #right
xpos 964
xsize gui.namebox_width
ypos gui.name_ypos
ysize gui.namebox_height
padding gui.namebox_borders.padding
This is where I had problems aside from retaining the appearances of the two nameboxes.
Is there a way to assign a value to whenever the flipped character is called?
Code: Select all
screen say(who, what):
style_prefix "say"
window:
id "window"
if who is not None:
window:
if flipped == True: #Is it possible to assign a value like this whenever the flipped speaker shows up?
if nameboxtrans == "In_trans":
at name_ease
else:
pass
id "namebox"
style "namebox"
text who id "who"
else:
if nameboxtrans == "In_trans":
at name_ease_flipped
else:
pass
id "namebox"
style "namebox2"
text who id "who"