|
1
|
wind_effect = instance_create(0, 0, obj_church_wind_effect);
|
|
2
|
wind_effect.con = 0;
|
|
3
|
con = 0;
|
|
4
|
timer = 0;
|
|
5
|
init = 0;
|
|
6
|
siner = 0;
|
|
7
|
cutscene = 0;
|
|
8
|
cutscene_master = 0;
|
|
9
|
snd_stop_all();
|
|
10
|
wind_sound = snd_loop(snd_strongwind_loop);
|
|
11
|
snd_volume(wind_sound, 0, 0);
|
|
12
|
wind_sound_peak_volume = 0.25;
|
|
13
|
framestore = 0;
|
|
14
|
bulletareastarted = false;
|
|
15
|
heartalpha = 1;
|
|
16
|
slowdown = false;
|
|
17
|
darkness_initial = 0.3;
|
|
18
|
darkness_hits = 0;
|
|
19
|
darkness_mid = 0.7;
|
|
20
|
darkness_end = 1;
|
|
21
|
sword_timer = 20;
|
|
22
|
sword_frames_between_each = 80;
|
|
23
|
music_started = false;
|
|
24
|
kr_actor = -1;
|
|
25
|
sword_pattern = 0;
|
|
26
|
cantdie = false;
|
|
27
|
sword_damage = 20;
|
|
28
|
swapsdone = 0;
|
|
29
|
draw_heart_effect = false;
|
|
30
|
warp_happened = false;
|
|
31
|
ra_hunch = -4;
|
|
32
|
su_hunch = -4;
|
|
33
|
kr_outline = -4;
|
|
34
|
ra_outline = -4;
|
|
35
|
su_outline = -4;
|
|
36
|
kr_special = scr_dark_marker_fancyscr_dark_marker_fancy
function scr_dark_marker_fancy(arg0, arg1, arg2)
{
var _thismarker = instance_create(arg0, arg1, obj_marker_fancy);
with (_thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return _thismarker;
} (obj_mainchara.x, obj_mainchara.y, spr_krisu_dark);
|
|
37
|
with (kr_special)
|
|
38
|
{
|
|
39
|
redalpha = 0;
|
|
40
|
hair_wind = true;
|
|
41
|
hair_index = 0;
|
|
42
|
|
|
43
|
draw_func = function()
|
|
44
|
{
|
|
45
|
var _con = sprite_index == spr_kris_walk_up_windy;
|
|
46
|
gpu_set_fog(true, c_red, 0, 1);
|
|
47
|
draw_sprite_ext(sprite_index, image_index, x, y - image_yscale, image_xscale, image_yscale, 0, c_white, redalpha);
|
|
48
|
draw_sprite_ext(sprite_index, image_index, x + image_xscale, y, image_xscale, image_yscale, 0, c_white, redalpha);
|
|
49
|
draw_sprite_ext(sprite_index, image_index, x, y + image_yscale, image_xscale, image_yscale, 0, c_white, redalpha);
|
|
50
|
draw_sprite_ext(sprite_index, image_index, x - image_xscale, y, image_xscale, image_yscale, 0, c_white, redalpha);
|
|
51
|
if (_con)
|
|
52
|
{
|
|
53
|
var _spr = spr_kris_walk_up_windy_hair;
|
|
54
|
if (hair_wind)
|
|
55
|
hair_index = ((get_timer() / 1000000) * 30) / 5;
|
|
56
|
draw_sprite_ext(_spr, hair_index, x, y - image_yscale, image_xscale, image_yscale, 0, c_white, redalpha);
|
|
57
|
draw_sprite_ext(_spr, hair_index, x + image_xscale, y, image_xscale, image_yscale, 0, c_white, redalpha);
|
|
58
|
draw_sprite_ext(_spr, hair_index, x, y + image_yscale, image_xscale, image_yscale, 0, c_white, redalpha);
|
|
59
|
draw_sprite_ext(_spr, hair_index, x - image_xscale, y, image_xscale, image_yscale, 0, c_white, redalpha);
|
|
60
|
}
|
|
61
|
gpu_set_fog(false, c_black, 0, 0);
|
|
62
|
draw_self();
|
|
63
|
if (_con)
|
|
64
|
draw_sprite_ext(spr_kris_walk_up_windy_hair, hair_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
65
|
};
|
|
66
|
}
|
|
67
|
su_actor = -4;
|
|
68
|
ra_actor = -4;
|
|
69
|
susieflippos = 0;
|
|
70
|
sync_friends = true;
|
|
71
|
sword_damage_horizontal = (global.maxhp[1] * 0.7) / 3;
|
|
72
|
friends_protecc_state = 0;
|
|
73
|
wound = false;
|
|
74
|
wound_state = false;
|
|
75
|
wound_heavy = false;
|
|
76
|
wound_distance = 40;
|
|
77
|
wound_kneeltime = 70;
|
|
78
|
wound_returntime = 28;
|
|
79
|
wound_standtime = 25;
|
|
80
|
wrappedup = false;
|
|
81
|
sword_endx = 3740;
|
|
82
|
darkness_startx = 360;
|
|
83
|
darkness_midx = 1000;
|
|
84
|
darkness_endx = 1600;
|
|
85
|
darkness_super_endx = 2000;
|
|
86
|
horizontal_endx = 4000;
|
|
87
|
vertical_starty = 3880;
|
|
88
|
vertical_endy = 940;
|
|
89
|
darkness = instance_create(0, 0, obj_darkness_overlay);
|
|
90
|
darkness.image_alpha = darkness_initial;
|
|
91
|
if (global.plot >= 248)
|
|
92
|
{
|
|
93
|
with (obj_darkswordthrower)
|
|
94
|
instance_destroy();
|
|
95
|
with (obj_overworld_bulletarea_no_dark)
|
|
96
|
instance_destroy();
|
|
97
|
with (instance_create(4080, 1360, obj_solidblockDark))
|
|
98
|
{
|
|
99
|
image_xscale = 5;
|
|
100
|
image_yscale = 5;
|
|
101
|
}
|
|
102
|
con = 99;
|
|
103
|
with (kr_special)
|
|
104
|
instance_destroy();
|
|
105
|
}
|
|
106
|
else
|
|
107
|
{
|
|
108
|
var _separation = 200;
|
|
109
|
for (var i = 0; i < 4; i++)
|
|
110
|
{
|
|
111
|
with (instance_create(darkness_super_endx + 100 + (i * _separation), 4040, obj_darkswordthrower))
|
|
112
|
{
|
|
113
|
image_xscale = 10;
|
|
114
|
image_yscale = 30;
|
|
115
|
pattern = ((i + 1) % 2) + 1;
|
|
116
|
if (x > other.darkness_super_endx)
|
|
117
|
murder = true;
|
|
118
|
damage = other.sword_damage_horizontal;
|
|
119
|
target = i;
|
|
120
|
spring_length = 15;
|
|
121
|
}
|
|
122
|
}
|
|
123
|
with (obj_overworld_bulletarea)
|
|
124
|
{
|
|
125
|
}
|
|
126
|
layer_set_visible("DEBUG_ASSETS", 0);
|
|
127
|
layer_set_visible("TILES_DAMAGE", false);
|
|
128
|
layer_set_visible("TILES_BLOCKED", false);
|
|
129
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
130
|
{
|
|
131
|
if (keyboard_check(ord("P")))
|
|
132
|
{
|
|
133
|
}
|
|
134
|
}
|
|
135
|
super_darkness = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (0, 0, spr_pixel_white);
|
|
136
|
super_darkness.image_xscale = 200;
|
|
137
|
super_darkness.image_yscale = 200;
|
|
138
|
super_darkness.depth = 1100;
|
|
139
|
super_darkness.image_blend = c_black;
|
|
140
|
super_darkness.image_alpha = 0;
|
|
141
|
light_player = instance_create(320, 4280, obj_light_following);
|
|
142
|
light_player_size = 320;
|
|
143
|
light_player.size = light_player_size;
|
|
144
|
light_player.target = 1049;
|
|
145
|
light_player.xoff = 18;
|
|
146
|
light_player.yoff = 44;
|
|
147
|
light_player.lightalpha = 0.08;
|
|
148
|
light_player_b = instance_create(320, 4280, obj_light_following);
|
|
149
|
light_player_b.size = 0;
|
|
150
|
light_player_b.target = 1049;
|
|
151
|
light_player_b.xoff = 18;
|
|
152
|
light_player_b.yoff = 44;
|
|
153
|
light_player_b.lightalpha = 0;
|
|
154
|
flash = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (global.heartx, global.hearty, spr_heart_white);
|
|
155
|
flash.depth = 1900;
|
|
156
|
flash.image_alpha = 0;
|
|
157
|
fakesoul = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (global.heartx, global.hearty, spr_heart);
|
|
158
|
fakesoul.depth = 1950;
|
|
159
|
fakesoul.image_alpha = 0;
|
|
160
|
cam = instance_create(0, 0, obj_camera_advanced);
|
|
161
|
with (cam)
|
|
162
|
event_user(1);
|
|
163
|
cam.panStyle[0] = 3;
|
|
164
|
scr_setpartyscr_setparty
function scr_setparty(arg0 = false, arg1 = false, arg2 = false)
{
var kris = obj_mainchara;
var slot = 0;
var __make = true;
if (!i_ex(kris))
__make = false;
scr_losechar();
safe_delete(obj_caterpillarchara);
if (arg0 == true)
{
scr_getchar(2);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 2, slot))
{
halign = (global.darkzone == 0) ? 3 : 6;
valign = (global.darkzone == 0) ? 6 : 16;
x -= halign;
y -= valign;
}
}
slot++;
}
if (arg1 == true)
{
scr_getchar(3);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 3, slot))
{
halign = 2;
valign = 12;
x -= halign;
y -= valign;
}
}
slot++;
}
if (arg2 == true)
{
scr_getchar(4);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 4, slot))
{
halign = (global.darkzone == 0) ? 2 : 4;
valign = (global.darkzone == 0) ? 9 : 18;
x -= halign;
y -= valign;
}
}
slot++;
}
} (1, 1, 0);
|
|
165
|
global.hp[1] = global.maxhp[1];
|
|
166
|
global.hp[2] = global.maxhp[2];
|
|
167
|
global.hp[3] = global.maxhp[3];
|
|
168
|
with (obj_mainchara)
|
|
169
|
{
|
|
170
|
battleheart.visible = false;
|
|
171
|
drawbattlemode = 0;
|
|
172
|
}
|
|
173
|
with (obj_border_controller)
|
|
174
|
hide_border(0.025);
|
|
175
|
}
|