This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
BitBlaster/objects/o_spawner/Step_0.gml
2025-04-20 15:57:23 +03:00

18 lines
394 B
Plaintext

if pause_movement() { exit; }
timer++;
// Reset when limit reached
if instance_number(o_parent_enemy) >= global.enemyActiveMax || global.totalEnemiesSpawned >= global.enemyRoomMax {
timer = 0;
}
// Spawn enemy
if timer >= spawn_time && !place_meeting(x, y, o_archer) {
var _inst = instance_create_depth(x, y, -500, o_archer);
with _inst {
image_alpha = 0;
state = -1;
}
timer = 0;
}