|
1
|
if (init == 0)
|
|
2
|
{
|
|
3
|
timer = 0;
|
|
4
|
siner = 0;
|
|
5
|
con = 1;
|
|
6
|
float = 0;
|
|
7
|
init = 1;
|
|
8
|
image_speed = 0;
|
|
9
|
image_index = 0;
|
|
10
|
}
|
|
11
|
if (float == 1)
|
|
12
|
{
|
|
13
|
siner++;
|
|
14
|
y -= (sin(siner / 8) * 0.3);
|
|
15
|
}
|
|
16
|
if (con == 1)
|
|
17
|
{
|
|
18
|
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;
} ("y", y - 20, y, 30, 2, "out");
|
|
19
|
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;
} ("image_alpha", 0, 1, 30, 2, "out");
|
|
20
|
con = 2;
|
|
21
|
}
|
|
22
|
if (con == 2)
|
|
23
|
{
|
|
24
|
timer++;
|
|
25
|
if (timer >= 30)
|
|
26
|
{
|
|
27
|
float = 1;
|
|
28
|
con = 3;
|
|
29
|
timer = 0;
|
|
30
|
}
|
|
31
|
}
|
|
32
|
if (con == 4)
|
|
33
|
{
|
|
34
|
timer++;
|
|
35
|
if (timer >= 15)
|
|
36
|
{
|
|
37
|
scr_oflashscr_oflash
function scr_oflash()
{
_oflash = instance_create(x, y, obj_oflash);
_oflash.image_xscale = image_xscale;
_oflash.image_speed = 0;
_oflash.image_index = image_index;
_oflash.image_yscale = image_yscale;
if (global.chapter == 2 && object_index == obj_mauswheel_enemy)
_oflash.sprite_index = spr_mauswheel_idle;
else
_oflash.sprite_index = sprite_index;
_oflash.depth = depth - 1;
_oflash.target = id;
return _oflash;
} ();
|
|
38
|
timer = 0;
|
|
39
|
}
|
|
40
|
var goalx = lengthdir_x(sprite_width * 2, random(360));
|
|
41
|
var goaly = lengthdir_y(sprite_height, random(360));
|
|
42
|
var thisid = id;
|
|
43
|
ball = instance_create(x + goalx, y + goaly, obj_afterimage_grow);
|
|
44
|
ball.sprite_index = spr_cutscene_27_berdly_halberd_orb;
|
|
45
|
ball.image_xscale = 2;
|
|
46
|
ball.image_yscale = 2;
|
|
47
|
ball.image_alpha = 0;
|
|
48
|
ball.fade = -0.1;
|
|
49
|
ball.xrate = -0.08;
|
|
50
|
ball.yrate = -0.08;
|
|
51
|
with (ball)
|
|
52
|
{
|
|
53
|
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;
} ("x", x, thisid.x, 20, 2, "in");
|
|
54
|
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;
} ("y", y, thisid.y + (goaly / 4), 20, 2, "in");
|
|
55
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (id, 20);
|
|
56
|
}
|
|
57
|
}
|
|
58
|
if (con == 5)
|
|
59
|
{
|
|
60
|
with (obj_lerpvar)
|
|
61
|
instance_destroy();
|
|
62
|
with (obj_afterimage)
|
|
63
|
{
|
|
64
|
gravity = 1;
|
|
65
|
vspeed = 1 + random(2);
|
|
66
|
}
|
|
67
|
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;
} ("y", y, y - 20, 30, 2, "in");
|
|
68
|
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;
} ("image_alpha", 1, 0, 30, 2, "in");
|
|
69
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (id, 40);
|
|
70
|
con = 6;
|
|
71
|
}
|