Here's an example of me having a side image with different expressions:
Code: Select all
$ m = Character("Me", image = "m", window_left_padding = 150, window_background = Frame("ui/m.png", 0, 0))
image side m blush = im.Scale("char/m/blush.png", 150, 364)
image side m happy = im.Scale("char/m/happy.png", 150, 364)
image side m mad = im.Scale("char/m/mad.png", 150, 364)
image side m norm = im.Scale("char/m/norm.png", 150, 364)
image side m sad = im.Scale("char/m/sad.png", 150, 364)
image side m smile = im.Scale("char/m/smile.png", 150, 364)
If you ignore the "im.Scale" (that's for scaling purposes in order to make it smaller), what I've done is put
in the Character line to allocate anything with m to be the MC.
means it's a side image (which you want) for the character m, which is the MC. Everything after the "image side m ..." is the word I want to use for the corresponding expression.
With this done, showing the different expressioned character in the script.rpy is simple. Where you would normally put "m" (or in your case "l") in the beginning before typing the sentence, put "m" and the word used for the expression.
e.g.
Code: Select all
e "Yeah just waiting for Ash before we head into town."
"My heart drooped a little as he said this. Ash? Was this the mysterious person that Freddie had been talking about before?"
m sad "Ah cool."
"I knew that he didn't know about my feelings, but I couldn't help but be a little upset at him; was it not obvious enough to him that I might have a little thing for him? Evidently not since he continued talking like normal."
e "You seen Fred?"
m norm "Ah he went to the library to return some books. I'm waiting for him out here before we walk home."
e "Cool cool. So...you're probably staying for dinner right?"
m "Mmm. Probably."
"m sad" shows the sad expression and "m norm" the normal expression. The reason I've got "m" saying "Mmm. Probably." afterwards is because "m norm" is remembered (like variables) so it continues showing "m norm" until you change the expression, say, back to "m sad" by putting "m sad" instead of "m"
...I've probably confused you more (lol) but if anything needs clearing up just ask