|
1
|
depth = 91000;
|
|
2
|
static_pos = false;
|
|
3
|
actor_target = -4;
|
|
4
|
ball_x = -1;
|
|
5
|
ball_y = -1;
|
|
6
|
mode = 0;
|
|
7
|
ball_angle = 0;
|
|
8
|
target_angle = 0;
|
|
9
|
var x_offset = 20;
|
|
10
|
var y_offset = 28;
|
|
11
|
ball_target_top_pos = ball_x + x_offset;
|
|
12
|
ball_target_bottom_pos = 165 + y_offset;
|
|
13
|
ball_top_pos_x = 0;
|
|
14
|
ball_top_pos_y = 0;
|
|
15
|
ball_bottom_pos_x = 0;
|
|
16
|
ball_bottom_pos_y = 0;
|
|
17
|
ball_alpha = 0;
|
|
18
|
catch_timer = 0;
|
|
19
|
init = false;
|
|
20
|
|
|
21
|
catch_character = function()
|
|
22
|
{
|
|
23
|
init = true;
|
|
24
|
ball_x = actor_target.x;
|
|
25
|
ball_y = actor_target.y;
|
|
26
|
target_angle = -150;
|
|
27
|
if (mode == 2)
|
|
28
|
target_angle = -180;
|
|
29
|
if (mode == 3 || mode == 4)
|
|
30
|
target_angle = -100;
|
|
31
|
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;
} ("ball_alpha", 0, 1, 5);
|
|
32
|
var x_offset = (mode == 3) ? 20 : 20;
|
|
33
|
if (mode == 4)
|
|
34
|
x_offset = 20;
|
|
35
|
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;
} ("ball_top_pos_x", actor_target.x - 40, actor_target.x + x_offset, 12, 3, "out");
|
|
36
|
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;
} ("ball_top_pos_y", 109, 195, 12, 3, "out");
|
|
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;
} ("ball_bottom_pos_x", actor_target.x + 40, actor_target.x + x_offset, 12, 3, "out");
|
|
38
|
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;
} ("ball_bottom_pos_y", 221, 195, 12, 3, "out");
|
|
39
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_lerpvar, 6, "ball_angle", ball_angle, target_angle, 15, -1, "out");
|
|
40
|
};
|
|
41
|
|
|
42
|
set_pos = function(arg0, arg1)
|
|
43
|
{
|
|
44
|
var x_offset = (mode == 3) ? 30 : 20;
|
|
45
|
if (mode == 4)
|
|
46
|
x_offset = 20;
|
|
47
|
target_angle = -150;
|
|
48
|
if (mode == 2)
|
|
49
|
target_angle = -180;
|
|
50
|
if (mode == 3 || mode == 4)
|
|
51
|
target_angle = -100;
|
|
52
|
ball_angle = target_angle;
|
|
53
|
ball_alpha = 1;
|
|
54
|
ball_top_pos_x = arg0 + x_offset;
|
|
55
|
ball_bottom_pos_x = arg0 + x_offset;
|
|
56
|
if (room == room_ch3_gameshowroom)
|
|
57
|
{
|
|
58
|
ball_top_pos_y = 329;
|
|
59
|
ball_bottom_pos_y = 329;
|
|
60
|
}
|
|
61
|
else
|
|
62
|
{
|
|
63
|
ball_top_pos_y = arg1;
|
|
64
|
ball_bottom_pos_y = arg1;
|
|
65
|
}
|
|
66
|
init = true;
|
|
67
|
};
|