|
1
|
if (instance_exists(obj_MovingPlat_dw_cyber_music_final))
|
|
2
|
{
|
|
3
|
xx = obj_MovingPlat_dw_cyber_music_final.x + 38;
|
|
4
|
yy = 152;
|
|
5
|
mody = 232;
|
|
6
|
rx = (xx - 50 - 38) + 2;
|
|
7
|
lx = (((xx + 330) - 38) + 2) - 4;
|
|
8
|
}
|
|
9
|
if (active == true)
|
|
10
|
timer++;
|
|
11
|
if (timer == 45)
|
|
12
|
{
|
|
13
|
down = instance_create(xx + 0, yy, obj_beatbullet_simple);
|
|
14
|
down = instance_create(xx + 204, yy, obj_beatbullet_simple);
|
|
15
|
}
|
|
16
|
if (timer == 60)
|
|
17
|
{
|
|
18
|
snd_stop(global.currentsong[1]);
|
|
19
|
if (scr_is_switch_os())
|
|
20
|
instance_create(x, y, obj_switchAsyncHelper);
|
|
21
|
musLoad = snd_init("cyber_battle_prelude.ogg");
|
|
22
|
musSeq = snd_play(musLoad);
|
|
23
|
sndinit = 1;
|
|
24
|
}
|
|
25
|
if (sndinit == 1)
|
|
26
|
{
|
|
27
|
trackpos = audio_sound_get_track_position(musSeq);
|
|
28
|
sndlength = audio_sound_length(musSeq);
|
|
29
|
var endme = false;
|
|
30
|
safetime++;
|
|
31
|
if (safetime > 150)
|
|
32
|
{
|
|
33
|
if (!audio_is_playing(musSeq))
|
|
34
|
{
|
|
35
|
debug_message("safety: moving on");
|
|
36
|
endme = true;
|
|
37
|
}
|
|
38
|
}
|
|
39
|
if (safetime > 540)
|
|
40
|
{
|
|
41
|
debug_message("safety quit...");
|
|
42
|
endme = true;
|
|
43
|
}
|
|
44
|
modifier = 0.5333333333333333;
|
|
45
|
if (scr_bullbattle_musposscr_bullbattle_muspos
function scr_bullbattle_muspos(arg0)
{
var targ = arg0 - modifier;
if (trackpos >= (targ - 0.03) && trackpos <= (targ + 0.01))
return true;
else
return false;
} (1.848))
|
|
46
|
{
|
|
47
|
left = instance_create(lx, mody + 0, obj_beatbullet_simple);
|
|
48
|
right = instance_create(rx, mody + 136, obj_beatbullet_simple);
|
|
49
|
seq++;
|
|
50
|
}
|
|
51
|
if (scr_bullbattle_musposscr_bullbattle_muspos
function scr_bullbattle_muspos(arg0)
{
var targ = arg0 - modifier;
if (trackpos >= (targ - 0.03) && trackpos <= (targ + 0.01))
return true;
else
return false;
} (3.694))
|
|
52
|
{
|
|
53
|
down = instance_create(xx + 0, yy, obj_beatbullet_simple);
|
|
54
|
down = instance_create(xx + 136, yy, obj_beatbullet_simple);
|
|
55
|
seq++;
|
|
56
|
}
|
|
57
|
if (scr_bullbattle_musposscr_bullbattle_muspos
function scr_bullbattle_muspos(arg0)
{
var targ = arg0 - modifier;
if (trackpos >= (targ - 0.03) && trackpos <= (targ + 0.01))
return true;
else
return false;
} (5.54))
|
|
58
|
{
|
|
59
|
down = instance_create(xx + 68, yy, obj_beatbullet_simple);
|
|
60
|
down = instance_create(xx + 204, yy, obj_beatbullet_simple);
|
|
61
|
seq++;
|
|
62
|
}
|
|
63
|
if (scr_bullbattle_musposscr_bullbattle_muspos
function scr_bullbattle_muspos(arg0)
{
var targ = arg0 - modifier;
if (trackpos >= (targ - 0.03) && trackpos <= (targ + 0.01))
return true;
else
return false;
} (6.481))
|
|
64
|
{
|
|
65
|
left = instance_create(lx, mody + 0, obj_beatbullet_simple);
|
|
66
|
right = instance_create(rx, mody + 0, obj_beatbullet_simple);
|
|
67
|
seq++;
|
|
68
|
}
|
|
69
|
if (scr_bullbattle_musposscr_bullbattle_muspos
function scr_bullbattle_muspos(arg0)
{
var targ = arg0 - modifier;
if (trackpos >= (targ - 0.03) && trackpos <= (targ + 0.01))
return true;
else
return false;
} (7.401))
|
|
70
|
{
|
|
71
|
left = instance_create(lx, mody + 0, obj_beatbullet_simple);
|
|
72
|
left = instance_create(lx, mody + 68, obj_beatbullet_simple);
|
|
73
|
seq++;
|
|
74
|
}
|
|
75
|
if (scr_bullbattle_musposscr_bullbattle_muspos
function scr_bullbattle_muspos(arg0)
{
var targ = arg0 - modifier;
if (trackpos >= (targ - 0.03) && trackpos <= (targ + 0.01))
return true;
else
return false;
} (9.233))
|
|
76
|
{
|
|
77
|
right = instance_create(rx, mody + 68, obj_beatbullet_simple);
|
|
78
|
right = instance_create(rx, mody + 136, obj_beatbullet_simple);
|
|
79
|
seq++;
|
|
80
|
}
|
|
81
|
if (scr_bullbattle_musposscr_bullbattle_muspos
function scr_bullbattle_muspos(arg0)
{
var targ = arg0 - modifier;
if (trackpos >= (targ - 0.03) && trackpos <= (targ + 0.01))
return true;
else
return false;
} (11.079))
|
|
82
|
{
|
|
83
|
down = instance_create(xx + 0, yy, obj_beatbullet_simple);
|
|
84
|
down = instance_create(xx + 68, yy, obj_beatbullet_simple);
|
|
85
|
seq++;
|
|
86
|
}
|
|
87
|
if (scr_bullbattle_musposscr_bullbattle_muspos
function scr_bullbattle_muspos(arg0)
{
var targ = arg0 - modifier;
if (trackpos >= (targ - 0.03) && trackpos <= (targ + 0.01))
return true;
else
return false;
} (13.438666666666666))
|
|
88
|
{
|
|
89
|
left = instance_create(lx, mody + 0, obj_beatbullet_simple);
|
|
90
|
left = instance_create(lx, mody + 136, obj_beatbullet_simple);
|
|
91
|
right = instance_create(rx, mody + 0, obj_beatbullet_simple);
|
|
92
|
right = instance_create(rx, mody + 136, obj_beatbullet_simple);
|
|
93
|
down = instance_create(xx + 0, yy, obj_beatbullet_simple);
|
|
94
|
down = instance_create(xx + 204, yy, obj_beatbullet_simple);
|
|
95
|
seq++;
|
|
96
|
}
|
|
97
|
if (trackpos >= 16.290000000000003 || endme)
|
|
98
|
{
|
|
99
|
con = 2;
|
|
100
|
snd_stop(musSeq);
|
|
101
|
snd_free(musLoad);
|
|
102
|
with (obj_switchAsyncHelper)
|
|
103
|
instance_destroy();
|
|
104
|
sndinit = 2;
|
|
105
|
active = 0;
|
|
106
|
}
|
|
107
|
}
|