1 |
obj_spinbullet_friendscene.targetx = targetx; |
2 |
obj_spinbullet_friendscene.targety = targety; |
3 |
if (spec == 0) |
4 |
{ |
5 |
with (obj_spinbullet_friendscene) |
6 |
move_towards_point(targetx, targety, 15); |
7 |
instance_destroy(); |
8 |
} |
9 |
if (spec == 2) |
10 |
{ |
11 |
with (obj_spinbullet_friendscene) |
12 |
move_towards_point(targetx, targety, 0.8); |
13 |
alarm[0] = 90;gml_Object_obj_spinbulletgen_friendscene_Alarm_0.gmlradius = 30;
ang = 0;
for (i = 0; i < 20; i += 1)
{
ang = i * 18;
xx = lengthdir_x(radius, ang);
yy = lengthdir_y(radius, ang);
fp = instance_create(xx + x, yy + y, obj_friendprotector);
fp.direction = ang;
fp.speed = 0.01;
fp.go = 1;
}
spec = 2; |
14 |
} |