im currently coding a game where i want the the player to be able to change the character's outfit, so it'll show up in cutscenes. how it works it that the sprite is replaced by different images according to which value 'outfit' is set to, so it's the same animations, just wearing different clothes.
i used 'conditionswitch' for this,
Code: Select all
image sato = ConditionSwitch(
"outfit=='h'", "images/h_sato.png",
"outfit=='f'", "images/f_sato.png")
and put the default "outfit" value before the start label:
in order to change clothes the player can visit the closet screen, (which is a hacked up version of the tutorials screen, if it helps), and the outfit value is set after picking a choice.
example of one of the possible choices vvvv
Code: Select all
label csf:
$ outfit == "f"
scene closet with Dissolve(0.5)
show cf
"very classy!"
and it works, except for the fact that once the game has done the initial image declaring upon startup it doesn't revisit the code whenever the outfit value is changed, so the new outfit doesn't show up, and the character will still wear the default one that's been previously declared.
is there any way to make the game "redeclare" images? it's kind of a bummer to not be able to change clothes...