In my Top-down shooting game, I have an array of enemy like this:
var normalenemy = preload("res://scenes/normalEnemy.tscn")
var runnerenemy = preload("res://scenes/runnerEnemy.tscn")
var flyingenemy = preload("res://scenes/flyingEnemy.tscn")
var grabberenemy = preload("res://scenes/grabberEnemy.tscn")
var tanker_enemy = preload("res://scenes/tankerEnemy.tscn")
var enemieslist = [normalenemy, runnerenemy, flyingenemy, grabberenemy, tankerenemy]
The problem is I want "grabber" enemy to exist on the map one at a time (for balancing reason, think it's like a mini boss). I can check if it is still on the map but is there any idea or logic how to temporary prevent the program to randomize and spawn more "grabber" if there is one on the map (all enemies are spawned as instance node) and let the program randomly spawn a new one if the one on the map is dead.