1 |
if (active == 1 && global.interact == 0) |
2 |
{ |
3 |
if (collision_rectangle(x + 16, y + 2, x + 24, y + 18, obj_mainchara, 0, 1)) |
4 |
{ |
5 |
scr_tempsavescr_tempsavefilechoicebk2 = global.filechoice;
global.filechoice = 9;
script_execute(scr_saveprocess);
global.filechoice = filechoicebk2; (); |
6 |
global.interact = 1; |
7 |
global.phasing = 1; |
8 |
hspeed = 3; |
9 |
obj_mainchara.hspeed = 3; |
10 |
obj_mainchara.image_speed = 0; |
11 |
scr_musfadeoutscr_musfadeoutg = instance_create(0, 0, obj_musfadeout);
if (argument0 == 0)
argument0 = 0.05;
g.fadespeed = argument0; (0.006); |
12 |
global.currentsong = caster_load("music/ambientwater.ogg"); |
13 |
caster_loop(global.currentsong, 0, 0.9); |
14 |
scr_musfadeinscr_musfadeing = instance_create(0, 0, obj_musfadein);
if (argument0 == 0)
argument0 = 0.05;
g.fadespeed = argument0; (0.005); |
15 |
active = 2; |
16 |
} |
17 |
} |
18 |
if (active == 2 && x >= 1000) |
19 |
{ |
20 |
x = 1000; |
21 |
hspeed = 0; |
22 |
obj_mainchara.image_speed = 0.25; |
23 |
alarm[2] = 8; |
24 |
active = 3; |
25 |
} |
26 |
if (active == 4) |
27 |
{ |
28 |
obj_mainchara.hspeed = 0; |
29 |
obj_mainchara.image_speed = 0; |
30 |
global.interact = 0; |
31 |
active = 5; |
32 |
hspeed = -3; |
33 |
global.phasing = 0; |
34 |
} |