| 1 |
if (btype[bno] == 0) |
| 2 |
ggg = instance_create(0, 0, obj_spiderbullet); |
| 3 |
if (btype[bno] == 1) |
| 4 |
ggg = instance_create(0, 0, obj_donutbullet); |
| 5 |
if (btype[bno] == 2) |
| 6 |
ggg = instance_create(0, 0, obj_croissant); |
| 7 |
if (btype[bno] < 3) |
| 8 |
{ |
| 9 |
if (bchoice[bno] == 0) |
| 10 |
ggg.choice = choose(1, 2, 3); |
| 11 |
else |
| 12 |
ggg.choice = bchoice[bno]; |
| 13 |
if (bside[bno] == 2) |
| 14 |
ggg.side = choose(0, 1); |
| 15 |
else |
| 16 |
ggg.side = bside[bno]; |
| 17 |
ggg.speedfactor = bspeed[bno]; |
| 18 |
ggg.dmg = dmg; |
| 19 |
if (instance_exists(obj_spiderb)) |
| 20 |
{ |
| 21 |
if (obj_spiderb.turnamt >= 15) |
| 22 |
{ |
| 23 |
with (ggg) |
| 24 |
dmg -= 1; |
| 25 |
} |
| 26 |
} |
| 27 |
} |
| 28 |
if (btype[bno] == 3) |
| 29 |
{ |
| 30 |
gg1 = instance_create(0, 0, obj_spiderbullet); |
| 31 |
gg2 = instance_create(0, 0, obj_spiderbullet); |
| 32 |
if (bchoice[bno] == 1) |
| 33 |
{ |
| 34 |
gg1.choice = 1; |
| 35 |
gg2.choice = 2; |
| 36 |
} |
| 37 |
if (bchoice[bno] == 2) |
| 38 |
{ |
| 39 |
gg1.choice = 1; |
| 40 |
gg2.choice = 3; |
| 41 |
} |
| 42 |
if (bchoice[bno] == 3) |
| 43 |
{ |
| 44 |
gg1.choice = 2; |
| 45 |
gg2.choice = 3; |
| 46 |
} |
| 47 |
if (bside[bno] == 2) |
| 48 |
{ |
| 49 |
gg1.side = choose(0, 1); |
| 50 |
gg2.side = gg1.side; |
| 51 |
} |
| 52 |
else |
| 53 |
{ |
| 54 |
gg1.side = bside[bno]; |
| 55 |
gg2.side = bside[bno]; |
| 56 |
} |
| 57 |
gg1.speedfactor = bspeed[bno]; |
| 58 |
gg2.speedfactor = bspeed[bno]; |
| 59 |
gg1.dmg = dmg; |
| 60 |
gg2.dmg = dmg; |
| 61 |
if (instance_exists(obj_spiderb)) |
| 62 |
{ |
| 63 |
if (obj_spiderb.turnamt >= 15) |
| 64 |
{ |
| 65 |
with (gg1) |
| 66 |
dmg -= 1; |
| 67 |
with (gg2) |
| 68 |
dmg -= 1; |
| 69 |
} |
| 70 |
} |
| 71 |
} |
| 72 |
if (btime[bno] == 0) |
| 73 |
btime[bno] = global.firingrate; |
| 74 |
alarm[2] = btime[bno];gml_Object_obj_spiderbulletgen_Alarm_2.gmlif (btype[bno] == 0)
ggg = instance_create(0, 0, obj_spiderbullet);
if (btype[bno] == 1)
ggg = instance_create(0, 0, obj_donutbullet);
if (btype[bno] == 2)
ggg = instance_create(0, 0, obj_croissant);
if (btype[bno] < 3)
{
if (bchoice[bno] == 0)
ggg.choice = choose(1, 2, 3);
else
ggg.choice = bchoice[bno];
if (bside[bno] == 2)
ggg.side = choose(0, 1);
else
ggg.side = bside[bno];
ggg.speedfactor = bspeed[bno];
ggg.dmg = dmg;
if (instance_exists(obj_spiderb))
{
if (obj_spiderb.turnamt >= 15)
{
with (ggg)
dmg -= 1;
}
}
}
if (btype[bno] == 3)
{
gg1 = instance_create(0, 0, obj_spiderbullet);
gg2 = instance_create(0, 0, obj_spiderbullet);
if (bchoice[bno] == 1)
{
gg1.choice = 1;
gg2.choice = 2;
}
if (bchoice[bno] == 2)
{
gg1.choice = 1;
gg2.choice = 3;
}
if (bchoice[bno] == 3)
{
gg1.choice = 2;
gg2.choice = 3;
}
if (bside[bno] == 2)
{
gg1.side = choose(0, 1);
gg2.side = gg1.side;
}
else
{
gg1.side = bside[bno];
gg2.side = bside[bno];
}
gg1.speedfactor = bspeed[bno];
gg2.speedfactor = bspeed[bno];
gg1.dmg = dmg;
gg2.dmg = dmg;
if (instance_exists(obj_spiderb))
{
if (obj_spiderb.turnamt >= 15)
{
with (gg1)
dmg -= 1;
with (gg2)
dmg -= 1;
}
}
}
if (btime[bno] == 0)
btime[bno] = global.firingrate;
alarm[2] = btime[bno];
bno += 1;
if (bno >= bmax)
alarm[2] = -1; |
| 75 |
bno += 1; |
| 76 |
if (bno >= bmax) |
| 77 |
alarm[2] = -1;gml_Object_obj_spiderbulletgen_Alarm_2.gmlif (btype[bno] == 0)
ggg = instance_create(0, 0, obj_spiderbullet);
if (btype[bno] == 1)
ggg = instance_create(0, 0, obj_donutbullet);
if (btype[bno] == 2)
ggg = instance_create(0, 0, obj_croissant);
if (btype[bno] < 3)
{
if (bchoice[bno] == 0)
ggg.choice = choose(1, 2, 3);
else
ggg.choice = bchoice[bno];
if (bside[bno] == 2)
ggg.side = choose(0, 1);
else
ggg.side = bside[bno];
ggg.speedfactor = bspeed[bno];
ggg.dmg = dmg;
if (instance_exists(obj_spiderb))
{
if (obj_spiderb.turnamt >= 15)
{
with (ggg)
dmg -= 1;
}
}
}
if (btype[bno] == 3)
{
gg1 = instance_create(0, 0, obj_spiderbullet);
gg2 = instance_create(0, 0, obj_spiderbullet);
if (bchoice[bno] == 1)
{
gg1.choice = 1;
gg2.choice = 2;
}
if (bchoice[bno] == 2)
{
gg1.choice = 1;
gg2.choice = 3;
}
if (bchoice[bno] == 3)
{
gg1.choice = 2;
gg2.choice = 3;
}
if (bside[bno] == 2)
{
gg1.side = choose(0, 1);
gg2.side = gg1.side;
}
else
{
gg1.side = bside[bno];
gg2.side = bside[bno];
}
gg1.speedfactor = bspeed[bno];
gg2.speedfactor = bspeed[bno];
gg1.dmg = dmg;
gg2.dmg = dmg;
if (instance_exists(obj_spiderb))
{
if (obj_spiderb.turnamt >= 15)
{
with (gg1)
dmg -= 1;
with (gg2)
dmg -= 1;
}
}
}
if (btime[bno] == 0)
btime[bno] = global.firingrate;
alarm[2] = btime[bno];
bno += 1;
if (bno >= bmax)
alarm[2] = -1; |