-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathscript-transition.rpy
50 lines (43 loc) · 1.58 KB
/
script-transition.rpy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Transition Setup and Resetting of Variables for next Skit
# This file is to generate a transition between skits while playing through them
# and to wipe/reset all changes to variables and other material to ensure residual
# leftovers are not carried over from one skit to the next.
# Defining the Transition assets
define audio.transition1 = "mod_assets/shared_assets/transition1.wav"
image bg transition_image = "mod_assets/shared_assets/transition_default.png"
define transition_glitch_intro = True
# Transition Code
# NOTE: For this transition to work properly both in and out, all played skits
# must not use any transitions, and avoid using the screen tear type of
# effects to avoid anything doubling up and awkward fades.
label skit_transition:
# We insert a screen tear first to ease in
window hide
if transition_glitch_intro == True:
show screen tear(20, 0.1, 0.1, 0, 40)
play sound "sfx/s_kill_glitch1.ogg"
$ pause(0.3)
stop sound
hide screen tear
$ quick_menu = False
stop music
show bg transition_image zorder 4
play music transition1
# While the music is playing, lets reset everything back to normal
$ s_name = "Sayori"
$ y_name = "Yuri"
$ n_name = "Natsuki"
$ m_name = "Monika"
$ transition_glitch_intro = True
# Finally a screen tear to ease out
$ pause (3)
stop music
show screen tear(20, 0.1, 0.1, 0, 40)
play sound "sfx/s_kill_glitch1.ogg"
$ pause(0.5)
stop sound
hide screen tear
#window show(None)
stop music
$ quick_menu = True
return