No, since it's not on a single topic. And while I'm at it, I have a good idea for a second post.
#2. Say with image attributes.
Say with image attributes was added in 6.12, but its use never really took off. Hopefully, this will fix that. First off, what are image attributes? In the following image statements, the bolded parts are image attributes.
image eileen
tshirt happy = "eileen_tshirt_happy.png"
image eileen
swimsuit happy = "eileen_swimsuit_happy.png"
image eileen
swimsuit mad = "eileen_swimsuit_happy.png"
Ren'Py keeps track of the attributes of each image. When you show an image with attributes, it tries to find a unique image such that the smallest number of attributes change. So we can do:
Code: Select all
# If eileen isn't shown, we have to give all the attributes.
show eileen tshirt happy
e "So we're here at the beach."
show eileen swimsuit
e "How do I look?"
show eileen mad
e "Hey! My eyes are up here!"
This code shows eileen tshirt happy, eileen swimsuit happy, and eileen swimsuit mad, in that order.
That code isn't much simpler then the version that includes more attributes. However, if we give the characters we use the image parameter, like so:
Code: Select all
define e = Character("Eileen", image="eileen")
we can then use the say with image attributes statement. That's just a regular say statement (as opposed to a narration say) with image attributes placed between the character and the text. The code above could then be written as:
Code: Select all
show eileen tshirt happy
e "So we're here at the beach."
e swimsuit "How do I look?"
e beach "Hey! My eyes are up here!"
You need the first show statement, since say with image attributes won't show an image tag that isn't currently shown. But after that, say with image attributes makes it easy to updates a character's expressions.
(There's some more stuff involving side images, but I'll stop here for today, to let people digest this, find mistakes, and ask questions.)