Code: Select all
def active_doc(event, interact=True, **kwargs):
global current_speaker
if not interact:
return
if event == "begin":
current_speaker = 'doc'
define d = DynamicCharacter("doc_name", color='#2a3d45', image='doc', callback=active_doc, ctc="ctc_blink", ctc_position="nestled")
image doc Normal = ConditionSwitch(
"current_speaker == 'doc'", "portraits/avery/normal.png",
"current_speaker != 'doc'", im.MatrixColor("portraits/avery/normal.png", im.matrix.saturation(0.8) * im.matrix.brightness(-0.2)))
I was wondering if there was a way I could add to this code in order to make it move the image above other characters when they talk? I'm likely missing something obvious here, tbh.