Anyway, I have a problem where I can't get my multilayered sprites to stop generating unexpected image loads, which I believe is screwing up my transitions.
You can see a couple of styles of sprites I've tried below, the first is an example provided by an embarrassed dev who requested not to be named. They all generate unexpected image loads though.
These sprite parts aren't declared, and I have a theory that would fix my issue, but I can't figure out how to make a composite of declared parts.
Code: Select all
init python:
### ANISE
def draw_anise(st, at):
return LiveComposite((358, 790),
(0,0), "sprites/anise/base.png",
(0,0), ConditionSwitch(
"an_emo == 'blush' ", "sprites/anise/emo_blush.png",
"an_emo == 'blush2' ", "sprites/anise/emo_blush2.png",
"True", Null(),
),
(0,0), ConditionSwitch(
"an_eyes == 'avert' ", "sprites/anise/eyes_avert.png",
"an_eyes == 'clenched' ", "sprites/anise/eyes_clenched.png",
"an_eyes == 'closed' ", "sprites/anise/eyes_closed.png",
"an_eyes == 'derp' ", "sprites/anise/eyes_derp.png",
"an_eyes == 'down' ", "sprites/anise/eyes_down.png",
"an_eyes == 'jitome' ", "sprites/anise/eyes_jitome.png",
"an_eyes == 'jitomeavert' ", "sprites/anise/eyes_jitomeavert.png",
"an_eyes == 'narrow' ", "sprites/anise/eyes_narrow.png",
"an_eyes == 'open' ", "sprites/anise/eyes_open.png",
"an_eyes == 'shine' ", "sprites/anise/eyes_shine.png",
"an_eyes == 'teary' ", "sprites/anise/eyes_teary.png",
"an_eyes == 'tender' ", "sprites/anise/eyes_tender.png",
"an_eyes == 'up' ", "sprites/anise/eyes_up.png",
"an_eyes == 'wide' ", "sprites/anise/eyes_wide.png",
"an_eyes == 'wideavert' ", "sprites/anise/eyes_wideavert.png",
),
(0,0), ConditionSwitch(
"an_mouth == 'agape' ", "sprites/anise/mouth_agape.png",
"an_mouth == 'closed' ", "sprites/anise/mouth_closed.png",
"an_mouth == 'crooked' ", "sprites/anise/mouth_crooked.png",
"an_mouth == 'eek' ", "sprites/anise/mouth_eek.png",
"an_mouth == 'frown' ", "sprites/anise/mouth_frown.png",
"an_mouth == 'grin' ", "sprites/anise/mouth_grin.png",
"an_mouth == 'happy' ", "sprites/anise/mouth_happy.png",
"an_mouth == 'low' ", "sprites/anise/mouth_low.png",
"an_mouth == 'pout' ", "sprites/anise/mouth_pout.png",
"an_mouth == 'quiver' ", "sprites/anise/mouth_quiver.png",
"an_mouth == 'shout' ", "sprites/anise/mouth_shout.png",
"an_mouth == 'small' ", "sprites/anise/mouth_small.png",
"an_mouth == 'smile' ", "sprites/anise/mouth_smile.png",
"an_mouth == 'wide' ", "sprites/anise/mouth_wide.png",
),
(0,0), ConditionSwitch(
"an_brows == 'angry' ", "sprites/anise/brows_angry.png",
"an_brows == 'angrylow' ", "sprites/anise/brows_angrylow.png",
"an_brows == 'cocked' ", "sprites/anise/brows_cocked.png",
"an_brows == 'oneup' ", "sprites/anise/brows_oneup.png",
"an_brows == 'furrowed' ", "sprites/anise/brows_furrowed.png",
"an_brows == 'neutral' ", "sprites/anise/brows_neutral.png",
"an_brows == 'raised' ", "sprites/anise/brows_raised.png",
"an_brows == 'raised2' ", "sprites/anise/brows_raised2.png",
"an_brows == 'sad' ", "sprites/anise/brows_sad.png",
"an_brows == 'sad2' ", "sprites/anise/brows_sad2.png",
),
(0,0), ConditionSwitch(
"an_emo == 'shadow' ", "sprites/anise/emo_shadow.png",
"True", Null(),
),
(0,0), ConditionSwitch(
"an_acc == 'bunny' ", "sprites/anise/acc_bunny.png",
"True", Null(),
),
), 0.1
def draw_lynae(st, at):
return LiveComposite((389, 775),
(0,0), process("sprites/lynae/base.png"),
(0,0), ConditionSwitch(
"ly_eyes == 'open' ", blinkfun2("sprites/lynae/eyes_open.png", "sprites/lynae/eyes_narrow.png", "sprites/lynae/eyes_closed.png"),
"True", "sprites/lynae/eyes_" + ly_eyes + ".png",
),
(0,0), "sprites/lynae/brows_" + ly_brows + ".png",
(0,0), "sprites/lynae/mouth_" + ly_mouth + ".png",
(0,0), ConditionSwitch(
"ly_emo == 'off'", Null(),
"True", "sprites/lynae/emo_" + ly_emo + ".png",
),
(0,0), ConditionSwitch(
"ly_fox == True", process("sprites/lynae/etc_fox_ears.png"),
"True", Null(),
),
), 0.1
### male ADULT
def draw_adultm(st, at):
return adult_male_live(am_dress, am_hair_color, am_hair_style, am_eyes, am_brows, am_mouth, am_moustache_style, am_beard_style)
def adult_male_live(dress, hair_color, hair_style, eyes, brows, mouth, moustache_style, beard_style, flip_h=False):
return LiveComposite((423, 850),
(0,0), "sprites/customers/adult_male/adult_male_dress_lskin_" + dress + ".png",
(0,0), "sprites/customers/adult_male/adult_male_head_lskin_" + hair_color + "_" + hair_style + ".png",
(0,0), "sprites/customers/adult_male/adult_male_eyes_" + eyes + ".png",
(0,0), "sprites/customers/adult_male/adult_male_brow_" + brows + "_" + hair_color + ".png",
(0,0), "sprites/customers/adult_male/adult_male_mouth_" + mouth + ".png",
(0,0), "sprites/customers/adult_male/adult_male_moustache_" + moustache_style + "_" + hair_color + ".png",
(0,0), "sprites/customers/adult_male/adult_male_beard_" + beard_style + "_" + hair_color + ".png",
), 0.1
init:
image anise = DynamicDisplayable(draw_anise)
image lynae = DynamicDisplayable(draw_lynae)
image adultm = DynamicDisplayable(draw_adultm)