twinblade-infinity/objects/obj_enemy_spawn/Alarm_0.gml

48 lines
885 B
Plaintext

rng = irandom(7);
if instance_number(obj_enemy_base) < 11
{
if rng < 4
{
instance_create(x,y,obj_enemy_buzzsaw);
spawned = 1;
}
if rng = 4
{
if global.level > 1
{
instance_create(x,y,obj_enemy_beamer);
spawned = 1;
}
}
if rng = 5
{
if global.level > 2
{
instance_create(x,y,obj_enemy_nova);
spawned = 1;
}
}
if rng = 6
{
if global.level > 3
{
instance_create(x,y,obj_enemy_drain);
spawned = 1;
}
}
if rng = 7
{
if global.level > 4
{
instance_create(x,y,obj_enemy_mother);
spawned = 1;
}
}
if spawned = 1
{
spawned = 0
}
}
alarm[0] = ceil(300/global.level)