|
1
|
timer++;
|
|
2
|
gigatimer++;
|
|
3
|
x += (cos(gigatimer * 0.1) * 0.15);
|
|
4
|
if (gigatimer)
|
|
5
|
y += (sin(gigatimer * 0.05) * 0.15);
|
|
6
|
if ((gigatimer % 6) == 0)
|
|
7
|
{
|
|
8
|
image_angle += 45;
|
|
9
|
for (a = 0; a < 6; a++)
|
|
10
|
ray[a] += irandom(4);
|
|
11
|
}
|
|
12
|
timer2++;
|
|
13
|
if (timer2 < 100 && (timer2 % 30) == 0)
|
|
14
|
timermax--;
|
|
15
|
if (timer2 > 400 && (timer2 % 10) == 0)
|
|
16
|
timermax++;
|
|
17
|
if (timer == timermax)
|
|
18
|
{
|
|
19
|
var orbit = instance_create_depth(x, y, depth + 1, obj_lanino_solar_system_orbit);
|
|
20
|
scr_bullet_inheritscr_bullet_inherit
function scr_bullet_inherit(arg0)
{
if (i_ex(arg0))
{
if (damage != -1)
arg0.damage = damage;
if (grazepoints != -1)
arg0.grazepoints = grazepoints;
if (timepoints != -1)
arg0.timepoints = timepoints;
if (inv != -1)
arg0.inv = inv;
if (target != -1)
arg0.target = target;
if (grazed != -1)
arg0.grazed = 0;
if (grazetimer != -1)
arg0.grazetimer = 0;
if (object_index == obj_dbulletcontroller)
{
arg0.creatorid = creatorid;
arg0.creator = creator;
}
arg0.element = element;
}
} (orbit);
|
|
21
|
orbit.scaler -= 0.0015 * intensity;
|
|
22
|
if (intensity < 4)
|
|
23
|
{
|
|
24
|
with (orbit)
|
|
25
|
event_user(0);
|
|
26
|
}
|
|
27
|
else
|
|
28
|
{
|
|
29
|
orbit.hratio = 1;
|
|
30
|
orbit.vratio = 1;
|
|
31
|
}
|
|
32
|
count++;
|
|
33
|
if (intensity < 3 && timer2 > 80 && count != 1 && count != 3 && count != 5 && count != 7 && count != 9)
|
|
34
|
{
|
|
35
|
var orbit2 = instance_create_depth(x, y, depth + 1, obj_lanino_solar_system_orbit);
|
|
36
|
scr_bullet_inheritscr_bullet_inherit
function scr_bullet_inherit(arg0)
{
if (i_ex(arg0))
{
if (damage != -1)
arg0.damage = damage;
if (grazepoints != -1)
arg0.grazepoints = grazepoints;
if (timepoints != -1)
arg0.timepoints = timepoints;
if (inv != -1)
arg0.inv = inv;
if (target != -1)
arg0.target = target;
if (grazed != -1)
arg0.grazed = 0;
if (grazetimer != -1)
arg0.grazetimer = 0;
if (object_index == obj_dbulletcontroller)
{
arg0.creatorid = creatorid;
arg0.creator = creator;
}
arg0.element = element;
}
} (orbit2);
|
|
37
|
orbit2.orbit_angle = orbit.orbit_angle + 180;
|
|
38
|
orbit2.hratio = orbit.hratio;
|
|
39
|
orbit2.vratio = orbit.vratio;
|
|
40
|
orbit2.orbit_face = orbit.orbit_face;
|
|
41
|
orbit2.orbit_direction = orbit.orbit_direction;
|
|
42
|
orbit2.orbit_expansion = 4;
|
|
43
|
orbit.scaler -= 0.0015 * intensity;
|
|
44
|
with (orbit2)
|
|
45
|
event_user(0);
|
|
46
|
}
|
|
47
|
timer = irandom(10) - (intensity * 15);
|
|
48
|
}
|