You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-TimeTrials/scripts/monster_spawn_powerups.gml

8 lines
608 B

/// monster_spawn_powerups(x, y, num_hp, num_missile)
repeat (argument2) instance_create(argument0 - 16 + random(32), argument1 - 16 + random(32), oHPickupBig);
repeat (argument3) instance_create(argument0 - 16 + random(32), argument1 - 16 + random(32), oMPickup);
if ((global.maxsmissiles > 0) && !instance_exists(oMAlpha)) {
if (((argument3 / 5) < 1) || instance_exists(oMGamma)) repeat (1) instance_create(argument0 - 16 + random(32), argument1 - 16 + random(32), oSMPickup);
else repeat floor(argument3 / 5) instance_create(argument0 - 16 + random(32), argument1 - 16 + random(32), oSMPickup);
}