1 is far left, 6 is far right. The 7-12 are the same positions, just larger chat bubbles for when the characters have a lot to say.
I've been staring at this code for awhile, and I feel like there's got to be a cleaner way to squash all of this info, as it's the same coordinates that I use throughout the entire game to display the chat box.
As it is right now, I copy/paste these two blocks of code for each new character that I define, and I just change the name. I.e. Jill_talk becomes Dave_talk (so I can have their bubbles appear in different locations, not a universal one.)
I was just curious if anyone had any thoughts on the matter!
And in trade for picking your brain, I'd be happy to offer a quick portrait sketch of one of your characters or a character from media that you like~ (/bribes with art/) XD
Code: Select all
init:
$jill_talk=1
screen say(who, what):
#zorder 2
# Defaults for side_image and two_window
default side_image = None
## ■██▓▒░ Jill bubble░▒▓█████████████████████████████████████■
elif (who=="Jill"):
if (jill_talk==1):
add "sprites/bubble_1.png" xpos 180 ypos 400 at boxpop
elif (jill_talk==2):
add "sprites/bubble_1.png" xpos 380 ypos 400 at boxpop
elif (jill_talk==3):
add "sprites/bubble_1.png" xpos 580 ypos 400 at boxpop
elif (jill_talk==4):
add "sprites/bubble_1.png" xpos 780 ypos 400 at boxpop
elif (jill_talk==5):
add "sprites/bubble_1.png" xpos 980 ypos 400 at boxpop
elif (jill_talk==6):
add "sprites/bubble_1.png" xpos 1180 ypos 400 at boxpop
elif (jill_talk==7):
add "sprites/bubble_1B.png" xpos 180 ypos 400 at boxpop
elif (jill_talk==8):
add "sprites/bubble_1B.png" xpos 380 ypos 400 at boxpop
elif (jill_talk==9):
add "sprites/bubble_1B.png" xpos 580 ypos 400 at boxpop
elif (jill_talk==10):
add "sprites/bubble_1B.png" xpos 780 ypos 400 at boxpop
elif (jill_talk==11):
add "sprites/bubble_1B.png" xpos 980 ypos 400 at boxpop
elif (jill_talk==12):
add "sprites/bubble_1B.png" xpos 1180 ypos 400 at boxpop
#██████████████████████████████████████████████████████████████████████████■
## ■██▓▒░ Jill who/what░▒▓█████████████████████████████████████■
elif (who=="Jill"):
if (jill_talk==1):
text who id "who" xpos 465 ypos 410
$whoOutside=who
elif (jill_talk==2):
text who id "who" xpos 665 ypos 410
$whoOutside=who
elif (jill_talk==3):
text who id "who" xpos 865 ypos 410
$whoOutside=who
elif (jill_talk==4):
text who id "who" xpos 1065 ypos 410
$whoOutside=who
elif (jill_talk==5):
text who id "who" xpos 1265 ypos 410
$whoOutside=who
elif (jill_talk==6):
text who id "who" xpos 1465 ypos 410
$whoOutside=who
elif (jill_talk==7):
text who id "who" xpos 465 ypos 410
$whoOutside=who
elif (jill_talk==8):
text who id "who" xpos 665 ypos 410
$whoOutside=who
elif (jill_talk==9):
text who id "who" xpos 865 ypos 410
$whoOutside=who
elif (jill_talk==10):
text who id "who" xpos 1065 ypos 410
$whoOutside=who
elif (jill_talk==11):
text who id "who" xpos 1265 ypos 410
$whoOutside=who
elif (jill_talk==12):
text who id "who" xpos 14650 ypos 410
$whoOutside=who
else:
text who id "who" xpos 570 ypos 615
if (jill_talk==1):
text what id "what" xpos 505 ypos 492 xmaximum 500
elif (jill_talk==2):
text what id "what" xpos 705 ypos 492 xmaximum 500
elif (jill_talk==3):
text what id "what" xpos 905 ypos 492 xmaximum 500
elif (jill_talk==4):
text what id "what" xpos 1105 ypos 492 xmaximum 500
elif (jill_talk==5):
text what id "what" xpos 1305 ypos 492 xmaximum 500
elif (jill_talk==6):
text what id "what" xpos 1505 ypos 492 xmaximum 500
elif (jill_talk==7):
text what id "what" xpos 505 ypos 535 xmaximum 500
elif (jill_talk==8):
text what id "what" xpos 705 ypos 535 xmaximum 500
elif (jill_talk==9):
text what id "what" xpos 905 ypos 535 xmaximum 500
elif (jill_talk==10):
text what id "what" xpos 1105 ypos 535 xmaximum 500
elif (jill_talk==11):
text what id "what" xpos 1305 ypos 535 xmaximum 500
elif (jill_talk==12):
text what id "what" xpos 1505 ypos 535 xmaximum 500
else:
text what id "what" xpos 505 ypos 470 xmaximum 500