Ah so that AttributeImage will be the best way to use for example an outfit change?PyTom wrote:ConditionSwitch and DynamicImage make sense for things like a character's gender or hair color, that won't change over the course of the game. But using a variable to indicate things like emotion seems like a bad idea to me (since we can't predict the new image over a variable change), and so I'd like to replace that with something better.
I am using variables like this now:
Code: Select all
# lynn adult
image i_lynnadult = LiveComposite( (606,1024), (0,0),"gfx/chars/lynnadult_[lynn_cloth].png")
image i_lynnadult angry = LiveComposite( (606,1024), (0,0),"gfx/chars/lynnadult_[lynn_cloth].png", (131,97),"gfx/chars/lynnadult_angry.png" )
image i_lynnadult happy = LiveComposite( (606,1024), (0,0),"gfx/chars/lynnadult_[lynn_cloth].png", (131,97),"gfx/chars/lynnadult_happy.png" )
image i_lynnadult sad = LiveComposite( (606,1024), (0,0),"gfx/chars/lynnadult_[lynn_cloth].png", (131,97),"gfx/chars/lynnadult_sad.png" )