1 |
shkx = shaker * choose(1, -1); |
2 |
shky = shaker * choose(1, -1); |
3 |
if (shaker > 0) |
4 |
shaker -= 1; |
5 |
draw_set_color(c_black); |
6 |
draw_set_alpha(b_al); |
7 |
ossafe_fill_rectangle(-10, -10, 999, 999); |
8 |
draw_set_alpha(1); |
9 |
draw_sprite_ext(spr_barriercut, 0, -bx + shkx, y + shky, 1, 1, 0, c_white, 1); |
10 |
draw_sprite_ext(spr_barriercut, 1, bx + shkx, y + shky, 1, 1, 0, c_white, 1); |
11 |
timer += 1; |
12 |
if (timer == 60) |
13 |
caster_play(sfx2, 0.8, 0.95); |
14 |
if (timer >= 60) |
15 |
{ |
16 |
bx += bxspeed; |
17 |
bxspeed += 2; |
18 |
} |
19 |
if (timer == 110) |
20 |
{ |
21 |
global.msc = 0; |
22 |
global.typer = 21; |
23 |
global.facechoice = 0; |
24 |
global.faceemotion = 0; |
25 |
global.msg[0] = The barrier was destroyed.Delay 77Close MessageClose Messagescr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_barriercut_94") ; |
26 |
instance_create(50, 50, OBJ_WRITER); |
27 |
} |
28 |
if (timer == 310) |
29 |
{ |
30 |
if (instance_exists(obj_asriel_overworldanim)) |
31 |
{ |
32 |
obj_asriel_overworldanim.powered = 0; |
33 |
obj_asriel_overworldanim.con = 20; |
34 |
} |
35 |
} |
36 |
if (timer >= 310) |
37 |
b_al -= 0.02; |
38 |
if (timer >= 370) |
39 |
{ |
40 |
caster_free(all); |
41 |
instance_destroy(); |
42 |
} |