|
1
|
if (myinteract == 1 && !d_ex())
|
|
2
|
{
|
|
3
|
myinteract = 0;
|
|
4
|
global.interact = 0;
|
|
5
|
}
|
|
6
|
if (extflag == 2 && tasquespawn == 1)
|
|
7
|
{
|
|
8
|
if (tasquecon == 0 && tasqueTrig == 0)
|
|
9
|
{
|
|
10
|
tasqueTrig = 1;
|
|
11
|
timer = 0;
|
|
12
|
tasquetimer = 0;
|
|
13
|
tasquecon = 2;
|
|
14
|
image_index = 1;
|
|
15
|
tasquemarker_head1 = 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;
} (x + 4, y + 10, spr_tasque_head);
|
|
16
|
tasquemarker1 = 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;
} (x + 4, y + 10, spr_tasque_idle);
|
|
17
|
tasquemarker1.image_alpha = 0;
|
|
18
|
tasquemarker_head1.depth = depth - 11;
|
|
19
|
tasquemarker1.depth = depth - 10;
|
|
20
|
snd_play(snd_jump);
|
|
21
|
tasquemarker1.remid = id;
|
|
22
|
with (tasquemarker1)
|
|
23
|
{
|
|
24
|
remjump = scr_jump_to_pointscr_jump_to_point
function scr_jump_to_point(arg0, arg1, arg2, arg3)
{
return scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
} (other.x, 610, 15, 24);
|
|
25
|
remid.remjump = remjump;
|
|
26
|
}
|
|
27
|
with (tasquemarker_head1)
|
|
28
|
scr_jump_to_pointscr_jump_to_point
function scr_jump_to_point(arg0, arg1, arg2, arg3)
{
return scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
} (other.x, 610, 15, 24);
|
|
29
|
remjump.image_alpha = 0;
|
|
30
|
with (tasquemarker1)
|
|
31
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
32
|
tasquemarker_head1.depth = tasquemarker1.depth - 1;
|
|
33
|
}
|
|
34
|
if (tasquecon == 2)
|
|
35
|
{
|
|
36
|
with (remjump)
|
|
37
|
image_alpha += 0.05;
|
|
38
|
tasquetimer++;
|
|
39
|
with (tasquemarker1)
|
|
40
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
41
|
tasquemarker_head1.depth = tasquemarker1.depth - 1;
|
|
42
|
if (tasquetimer >= 24)
|
|
43
|
{
|
|
44
|
image_index = 1;
|
|
45
|
obj_npc_tasquemanager.marker2 = instance_create(tasquemarker1.x, tasquemarker1.y, obj_npc_room);
|
|
46
|
obj_npc_tasquemanager.marker2.sprite_index = spr_tasque_idle;
|
|
47
|
with (obj_npc_tasquemanager.marker2)
|
|
48
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
49
|
with (tasquemarker1)
|
|
50
|
instance_destroy();
|
|
51
|
with (tasquemarker_head1)
|
|
52
|
instance_destroy();
|
|
53
|
tasquespawn = 0;
|
|
54
|
tasquecon++;
|
|
55
|
tasquetimer = 0;
|
|
56
|
}
|
|
57
|
}
|
|
58
|
}
|