|
1
|
if (con == 0)
|
|
2
|
{
|
|
3
|
var trig = false;
|
|
4
|
if (global.interact == 0)
|
|
5
|
{
|
|
6
|
with (obj_triggervolume)
|
|
7
|
{
|
|
8
|
if (place_meeting(x, y, obj_mainchara))
|
|
9
|
trig = true;
|
|
10
|
}
|
|
11
|
}
|
|
12
|
if (trig == true)
|
|
13
|
{
|
|
14
|
con = 1;
|
|
15
|
timer = 0;
|
|
16
|
}
|
|
17
|
}
|
|
18
|
if (con == 1)
|
|
19
|
{
|
|
20
|
timer++;
|
|
21
|
var falltime = 6;
|
|
22
|
if (timer == 1)
|
|
23
|
{
|
|
24
|
trash.sprite_index = spr_dw_ch3_b3bs_trashcan_fall;
|
|
25
|
with (trash)
|
|
26
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_index", 0, 4, falltime);
|
|
27
|
}
|
|
28
|
if (timer == (1 + falltime))
|
|
29
|
{
|
|
30
|
snd_play(snd_impact);
|
|
31
|
ribbick = 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;
} ((trash.x + 80) - 20, trash.y, spr_ribbick_Idle);
|
|
32
|
with (ribbick)
|
|
33
|
{
|
|
34
|
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));
}
} ();
|
|
35
|
depth = other.trash.depth - 1;
|
|
36
|
image_alpha = 0;
|
|
37
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 0, 1, 4, 2, "out");
|
|
38
|
scr_animatescr_animate
function scr_animate(arg0, arg1, arg2)
{
__animator = instance_create(x, y, obj_animator);
__animator.target = id;
__animator.initframe = arg0;
__animator.endframe = arg1;
__animator.fake_image_speed = arg2;
return __animator;
} (2, 0, 0.125);
|
|
39
|
hspeed = 6;
|
|
40
|
friction = 0.5;
|
|
41
|
}
|
|
42
|
}
|
|
43
|
if (timer == (1 + falltime + 10))
|
|
44
|
{
|
|
45
|
with (ribbick)
|
|
46
|
{
|
|
47
|
other.ribbick = instance_create(x, y, obj_chaseenemy);
|
|
48
|
other.ribbick.sprite_index = sprite_index;
|
|
49
|
other.ribbick.touchsprite = spr_ribbick_hurt2;
|
|
50
|
other.ribbick.myencounter = 126;
|
|
51
|
other.ribbick.encounterflag = other.encounterflag;
|
|
52
|
other.ribbick.alerted = 1;
|
|
53
|
other.ribbick.ct0minspeed = 4;
|
|
54
|
other.ribbick.ct0topspeed = 8;
|
|
55
|
other.ribbick.ct0acc = 1;
|
|
56
|
if (global.flag[other.encounterflag] != 0)
|
|
57
|
{
|
|
58
|
other.ribbick.ct0minspeed = 2;
|
|
59
|
other.ribbick.ct0topspeed = 6;
|
|
60
|
other.ribbick.ct0acc = 0.5;
|
|
61
|
}
|
|
62
|
else
|
|
63
|
{
|
|
64
|
other.ribbick.alertskip = 1;
|
|
65
|
}
|
|
66
|
instance_destroy();
|
|
67
|
}
|
|
68
|
with (trash)
|
|
69
|
{
|
|
70
|
depth += 100;
|
|
71
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 2, 0, 30, 2, "out");
|
|
72
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (id, 60);
|
|
73
|
}
|
|
74
|
}
|
|
75
|
}
|