From 56d6abea1a1e5006a819395f1845e338dd700ea7 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:52:01 +0200 Subject: [PATCH] Avoid using unnecessary screens --- game/scripts/events/labels.rpy | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/game/scripts/events/labels.rpy b/game/scripts/events/labels.rpy index 3e50bb10..88a78b2f 100644 --- a/game/scripts/events/labels.rpy +++ b/game/scripts/events/labels.rpy @@ -141,18 +141,24 @@ label teleport(position_=None, effect=True, poof_label=None): with d1 hide screen blkfade - show screen heal_animation(teleport_pos, teleport_zorder) + show heal_ani onlayer screens zorder teleport_zorder: + anchor (0.5, 1.0) + pos teleport_pos + zoom 0.5 with d3 #stop music fadeout 1 - hide screen heal_animation + hide heal_animation onlayer screens if poof_label is not None: call expression poof_label - show screen teleport_animation(teleport_pos, teleport_zorder) + show teleport_ani onlayer screens zorder teleport_zorder: + anchor (0.5, 0.7) + pos teleport_pos + zoom 0.5 with d5 - hide screen teleport_animation + hide teleport_animation onlayer screens with d5 if effect: @@ -160,14 +166,6 @@ label teleport(position_=None, effect=True, poof_label=None): return -screen teleport_animation(pos, zorder): - add "teleport_ani" anchor (0.5, 0.7) pos pos zoom 0.5 - zorder zorder - -screen heal_animation(pos, zorder): - add "heal_ani" anchor (0.5, 1.0) pos pos zoom 0.5 - zorder zorder - # Dummy labels. To prevent crashes. # TODO: Remove later. default hermione_action = None