|
1
|
if (con == 1)
|
|
2
|
{
|
|
3
|
timer++;
|
|
4
|
image_alpha += 0.05;
|
|
5
|
if (timer == 20)
|
|
6
|
{
|
|
7
|
timer = 0;
|
|
8
|
con = 2;
|
|
9
|
}
|
|
10
|
}
|
|
11
|
if (con == 2)
|
|
12
|
{
|
|
13
|
timer++;
|
|
14
|
x = lerp(start_x, target_x, timer / 30);
|
|
15
|
y = lerp(start_y, target_y, timer / 30);
|
|
16
|
if (timer == 30)
|
|
17
|
{
|
|
18
|
timer = 0;
|
|
19
|
con = 3;
|
|
20
|
move_count++;
|
|
21
|
start_x = x;
|
|
22
|
start_y = y;
|
|
23
|
if (move_count == 1)
|
|
24
|
{
|
|
25
|
target_x = x + 79;
|
|
26
|
target_y = y;
|
|
27
|
}
|
|
28
|
if (move_count == 2)
|
|
29
|
{
|
|
30
|
target_x = x - 79;
|
|
31
|
target_y = y;
|
|
32
|
}
|
|
33
|
if (move_count == 3)
|
|
34
|
{
|
|
35
|
target_x = x;
|
|
36
|
target_y = y + 79;
|
|
37
|
}
|
|
38
|
}
|
|
39
|
}
|
|
40
|
if (con == 3)
|
|
41
|
{
|
|
42
|
timer++;
|
|
43
|
if (timer == 26)
|
|
44
|
{
|
|
45
|
timer = 0;
|
|
46
|
con = 2;
|
|
47
|
}
|
|
48
|
}
|
|
49
|
if (con == 4)
|
|
50
|
{
|
|
51
|
timer++;
|
|
52
|
if (i_ex(obj_rouxls_laser_pointer_controller))
|
|
53
|
{
|
|
54
|
var xx = real(obj_rouxls_laser_pointer_controller._mouse_x);
|
|
55
|
var yy = real(obj_rouxls_laser_pointer_controller._mouse_y);
|
|
56
|
if (point_distance(x, y, xx, yy) > 10)
|
|
57
|
{
|
|
58
|
move_towards_point(xx, yy, 2);
|
|
59
|
}
|
|
60
|
else
|
|
61
|
{
|
|
62
|
speed = 0;
|
|
63
|
alarm[0] = 30; gml_Object_obj_rouxls_cloud_bullet_Alarm_0.gml
exit;
|
|
64
|
}
|
|
65
|
}
|
|
66
|
else
|
|
67
|
{
|
|
68
|
speed = 0;
|
|
69
|
}
|
|
70
|
if (alarm[0] > 0)
|
|
71
|
speed = 0;
|
|
72
|
}
|
|
73
|
if (snowflakes == 0 && con > 1 && (timer % 15) == 0)
|
|
74
|
{
|
|
75
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} ((x - 18) + irandom(36), y + 6 + random(6), obj_rouxls_suncloud_bullets, 270, 1 + random(2), spr_raindrop))
|
|
76
|
{
|
|
77
|
updateimageangle = 1;
|
|
78
|
image_angle = 270;
|
|
79
|
gravity_direction = 270;
|
|
80
|
gravity = 0.14;
|
|
81
|
image_xscale = 0.75;
|
|
82
|
image_yscale = 0.75;
|
|
83
|
if (i_ex(obj_rouxls_laser_pointer_controller))
|
|
84
|
{
|
|
85
|
var xx = real(obj_rouxls_laser_pointer_controller._mouse_x);
|
|
86
|
var yy = real(obj_rouxls_laser_pointer_controller._mouse_y);
|
|
87
|
gravity_direction = point_direction(x, y, xx, yy);
|
|
88
|
direction = gravity_direction;
|
|
89
|
image_angle = gravity_direction;
|
|
90
|
}
|
|
91
|
}
|
|
92
|
}
|
|
93
|
if (snowflakes == 1 && con > 1)
|
|
94
|
{
|
|
95
|
if (cluster == true)
|
|
96
|
{
|
|
97
|
if ((timer % 8) == 0)
|
|
98
|
{
|
|
99
|
with (instance_create((x - 10) + random(20), (y - 10) + random(20), obj_rouxls_suncloud_bullets))
|
|
100
|
{
|
|
101
|
image_angle = random(360);
|
|
102
|
spin = 1;
|
|
103
|
spinspeed = (1 + random(2)) * choose(1, -1);
|
|
104
|
sprite_index = spr_snowflake;
|
|
105
|
image_blend = c_gray;
|
|
106
|
active = false;
|
|
107
|
direction = point_direction(x, y, (obj_growtangle.x - 60) + random(130), (obj_growtangle.y - 60) + random(130));
|
|
108
|
speed = random(0.8);
|
|
109
|
image_alpha = 0;
|
|
110
|
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, 5);
|
|
111
|
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_var, 10, "active", true);
|
|
112
|
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_var, 10, "image_blend", 16777215);
|
|
113
|
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_var, 70, "active", false);
|
|
114
|
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_var, 70, "image_blend", 8421504);
|
|
115
|
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, 70, "image_alpha", 1, 0, 15);
|
|
116
|
image_xscale = 2;
|
|
117
|
image_yscale = 2;
|
|
118
|
}
|
|
119
|
}
|
|
120
|
}
|
|
121
|
else if ((timer % 15) == 0)
|
|
122
|
{
|
|
123
|
with (obj_regularbullet)
|
|
124
|
direction = point_direction(x, y, other.x, other.y);
|
|
125
|
with (instance_create((obj_growtangle.x - 80) + random(160), (obj_growtangle.y - 80) + random(160), obj_rouxls_suncloud_bullets))
|
|
126
|
{
|
|
127
|
image_angle = random(360);
|
|
128
|
spin = 1;
|
|
129
|
spinspeed = (1 + random(2)) * choose(1, -1);
|
|
130
|
sprite_index = spr_snowflake;
|
|
131
|
image_blend = c_gray;
|
|
132
|
active = false;
|
|
133
|
direction = point_direction(x, y, other.x, other.y);
|
|
134
|
speed = 0.5 + random(1);
|
|
135
|
image_alpha = 0;
|
|
136
|
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, 15);
|
|
137
|
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_var, 30, "active", true);
|
|
138
|
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_var, 30, "image_blend", 16777215);
|
|
139
|
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_var, 150, "active", false);
|
|
140
|
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_var, 150, "image_blend", 8421504);
|
|
141
|
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, 150, "image_alpha", 1, 0, 15);
|
|
142
|
image_xscale = 2;
|
|
143
|
image_yscale = 2;
|
|
144
|
}
|
|
145
|
}
|
|
146
|
}
|