|
1
|
tcon = 0;
|
|
2
|
image_speed = 0.05;
|
|
3
|
scr_depthscr_depth
function scr_depth()
{
if (argument_count > 0)
{
with (argument0)
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
else
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
} ();
|
|
4
|
if (room == room_flowershop_1f)
|
|
5
|
{
|
|
6
|
counter = 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;
} (20, 103, spr_flowershop_counter);
|
|
7
|
with (counter)
|
|
8
|
scr_depthscr_depth
function scr_depth()
{
if (argument_count > 0)
{
with (argument0)
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
else
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
} ();
|
|
9
|
flowera = 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;
} (177, 136, spr_flowershop_flowers);
|
|
10
|
flowerb = 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;
} (177, 82, spr_flowershop_flowers);
|
|
11
|
with (flowera)
|
|
12
|
scr_depthscr_depth
function scr_depth()
{
if (argument_count > 0)
{
with (argument0)
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
else
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
} ();
|
|
13
|
with (flowerb)
|
|
14
|
scr_depthscr_depth
function scr_depth()
{
if (argument_count > 0)
{
with (argument0)
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
else
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
} ();
|
|
15
|
con = 1;
|
|
16
|
instance_create(x, y + sprite_height, obj_npc_facing);
|
|
17
|
}
|
|
18
|
if (room == room_flowershop_1f)
|
|
19
|
{
|
|
20
|
if (global.entrance == 2)
|
|
21
|
{
|
|
22
|
global.interact = 0;
|
|
23
|
global.entrance = 0;
|
|
24
|
with (obj_mainchara)
|
|
25
|
x = global.flag[264 asgore_stairs_side];
|
|
26
|
}
|
|
27
|
}
|
|
28
|
if (room == room_flowershop_2f)
|
|
29
|
{
|
|
30
|
visible = 0;
|
|
31
|
if (global.entrance == 1)
|
|
32
|
{
|
|
33
|
global.entrance = 0;
|
|
34
|
global.interact = 0;
|
|
35
|
with (obj_mainchara)
|
|
36
|
x = global.flag[264 asgore_stairs_side];
|
|
37
|
if (obj_mainchara.x < 160)
|
|
38
|
x = 255;
|
|
39
|
if (obj_mainchara.x > 160)
|
|
40
|
x = 15;
|
|
41
|
instance_create(x, y + sprite_height, obj_npc_facing);
|
|
42
|
con = -1;
|
|
43
|
}
|
|
44
|
}
|
|
45
|
if (global.chapter == 1)
|
|
46
|
{
|
|
47
|
instance_create(x, y + sprite_height, obj_npc_facing);
|
|
48
|
}
|
|
49
|
else if (global.chapter == 2)
|
|
50
|
{
|
|
51
|
if (room == room_flowershop_1f)
|
|
52
|
instance_destroy();
|
|
53
|
}
|
|
54
|
else
|
|
55
|
{
|
|
56
|
instance_destroy();
|
|
57
|
}
|