|
1
|
if (!audience_active)
|
|
2
|
exit;
|
|
3
|
if (!audience_pause)
|
|
4
|
{
|
|
5
|
move_timer++;
|
|
6
|
if (move_timer == 1)
|
|
7
|
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;
} ("x_offset", x_offset, x_offset + choose(-10, 0, 10), 30);
|
|
8
|
if (move_timer >= 60)
|
|
9
|
move_timer = 0;
|
|
10
|
}
|
|
11
|
if (audience_show)
|
|
12
|
{
|
|
13
|
audience_show = false;
|
|
14
|
var _target_y = (target_y_pos > 0) ? target_y_pos : (cameray() + 450);
|
|
15
|
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;
} ("base_y_pos", base_y_pos, _target_y, 10, -1, "out");
|
|
16
|
}
|
|
17
|
if (audience_hide)
|
|
18
|
{
|
|
19
|
audience_hide = false;
|
|
20
|
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;
} ("base_y_pos", base_y_pos, cameray() + view_hport[0] + 150, 22, 3, "out");
|
|
21
|
}
|
|
22
|
if (audience_hide_slow)
|
|
23
|
{
|
|
24
|
audience_hide_slow = false;
|
|
25
|
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;
} ("base_y_pos", base_y_pos, cameray() + view_hport[0] + 150, 88, 3, "out");
|
|
26
|
}
|
|
27
|
if (rose_throw)
|
|
28
|
{
|
|
29
|
rose_throw_timer--;
|
|
30
|
if (rose_throw_timer == 0)
|
|
31
|
{
|
|
32
|
rose_throw_timer = rose_throw_time;
|
|
33
|
var xloc = camerax() + irandom_range(0, 500);
|
|
34
|
var yloc = cameray() + view_hport[0] + 40;
|
|
35
|
var rose = instance_create(xloc, yloc, obj_tennarose_alt);
|
|
36
|
var _max_width = (camerax() + view_wport[0]) - 180;
|
|
37
|
if (rose_throw_full_width)
|
|
38
|
_max_width = (camerax() + view_wport[0]) - 80;
|
|
39
|
var targx = camerax() + irandom_range(camerax() + 100, _max_width);
|
|
40
|
var targy = cameray() + 300 + irandom(5);
|
|
41
|
rose.endx = targx;
|
|
42
|
rose.endy = targy;
|
|
43
|
rose.jumptime = 10 + irandom(5) + 10;
|
|
44
|
rose.fakegravity = 0.8 + random(0.7);
|
|
45
|
rose.jumpheight = 100 + irandom(50);
|
|
46
|
rose.depth = 96020;
|
|
47
|
}
|
|
48
|
}
|
|
49
|
if (audience_bounce)
|
|
50
|
{
|
|
51
|
audience_bounce = false;
|
|
52
|
audience_bounce_stop = false;
|
|
53
|
scr_delay_var("audience_bounce_stop", true, 71);
|
|
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;
}
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;
} ("siner_speed", siner_speed, 0.3, 10);
|
|
55
|
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, 60, "siner_speed", 0.3, 0.15, 10);
|
|
56
|
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;
} ("base_y_pos", base_y_pos, base_y_pos - 22, 10, -1, "out");
|
|
57
|
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, 60, "base_y_pos", base_y_pos - 22, base_y_pos, 10);
|
|
58
|
}
|