Code: Select all
default persistent.dDress = { "skin" : 1, "glasses" : 1, "dress" : 4, "hair" : 2 }
init python:
def draw_girl(st, at):
return LiveComposite(
(0, 0),
(0, 0), im.FactorScale('base.png', 1.5, 1.5),
(0, 0), im.FactorScale( 'skin{}.png'.format(persistent.dDress['skin']), 1.5, 1.5 ),
(0, 0), im.FactorScale( 'dress{}.png'.format(persistent.dDress['dress']), 1.5, 1.5 ),
(0, 0), im.FactorScale( 'hair{}.png'.format(persistent.dDress['hair']), 1.5, 1.5 ),
(0, 0), im.FactorScale( 'glasses{}.png'.format(persistent.dDress['glasses']), 1.5, 1.5 )
), .1
image girl = DynamicDisplayable(draw_girl)
init python:
class DressUp(Action):
def __init__(self, dict, key, value, max):
self.dict = dict
self.key = key
self.value = value
self.max = max
def __call__(self):
value = self.dict[self.key] + self.value
if value < 1:
value = self.max
elif value > self.max:
value = 1
self.dict[self.key] = value
renpy.restart_interaction()Code: Select all
init python:
def draw_girl(st, at):
return LiveComposite(
(0, 0),
(0, 0), im.FactorScale('base.png', 1.5, 1.5),
(0, 0), im.FactorScale( 'skin{}.png'.format(persistent.dDress['skin']), 1.5, 1.5 ),
(0, 0), im.FactorScale( 'dress{}.png'.format(persistent.dDress['dress']), 1.5, 1.5 ),
(0, 0), im.FactorScale( 'hair{}.png'.format(persistent.dDress['hair']), 1.5, 1.5 ),
(0, 0), im.FactorScale( 'glasses{}.png'.format(persistent.dDress['glasses']), 1.5, 1.5 )
), .1
#The line below is the one I add. I thought this would work, but I got lost somewhere. Can someone help me fix this please?
if persistent.promdress == "unlockpromdress":
(0, 0), im.FactorScale( 'promdress.png'.format(persistent.dDress['dress']), 1.5, 1.5 )
Pulse Cage (full game)
Your Brother's Religion (Demo)