Transforms.rpy
Code: Select all
transform close:
zoom 1.2
transform normal:
zoom 1.0Code: Select all
init python:
def my_zoom1(event, interact=True, **kwargs):
if not interact:
return
if event == "begin":
if renpy.showing("m"):
renpy.show("m", at_list=[close])
elif event == "end":
if renpy.showing("m"):
renpy.show("m", at_list=[normal])
def my_zoom2(event, interact=True, **kwargs):
if not interact:
return
if event == "begin":
if renpy.showing("r"):
renpy.show("r", at_list=[close])
elif event == "end":
if renpy.showing("r"):
renpy.show("r", at_list=[normal])
def my_zoom3(event, interact=True, **kwargs):
if not interact:
return
if event == "begin":
if renpy.showing("ma"):
renpy.show("ma", at_list=[close])
elif event == "end":
if renpy.showing("ma"):
renpy.show("ma", at_list=[normal])
define m = Character('Mother', ctc="ctc_blink", ctc_position="nestled", what_prefix='"', what_suffix='"', callback=my_zoom1)
define r = Character('Robert', ctc="ctc_blink", ctc_position="nestled", what_prefix='"', what_suffix='"', callback=my_zoom2)
define ma = Character('Maya', ctc="ctc_blink", ctc_position="nestled", what_prefix='"', what_suffix='"', callback=my_zoom3)
show Maya1 with dissolve
m "That's all you're getting. You should have thought twice before eating so quickly!"