I have a quick question.
How do I apply a transition between two states within a layeredimage?
Look at the following code. It works and shows the animation I want.
Code: Select all
image sarah = "images/sarah.png"
image sarah hat = "images/sarah_with_hat_on.png"
show sarah
s "Okay, just let me grab my hat first.
show sarah hat
with Dissolve(2)
s "I'm ready."
However, this code means I can't use layeredimages as I want, which will lead to future problems.
I want to do something kinda like the below code tag
Code: Select all
layeredimage sarah
always:
"images/sarah_base.png"
if sarah_wearing_hat:
"images/sarah_blue_hat.png"
$sarah_hat = false
show sarah
s "Okay, just let me grab my hat first.
$sarah_hat = true
with Dissolve(2)
s "I'm ready."
What can I do to apply transitions like this?