M
Max Doerwaldt
Guest
I am having trouble making my control object spawn different enemies. I have tried making different alarms but it only wants to spawn the basic enemy. If I put the spawns in the same alarm it will spawn them all at once which will impossible for the player to deal with. The spawn code is the same for each enemy with different object names.
Code:
var xpos = irandom_range(50, room_width-50);
// basic
instance_create(xpos, -100, obj_basic);
alarm[1] = room_speed * .8;
// bomber
var xpos = irandom_range(50, room_width-50);
instance_create(xpos, -100, obj_bomber);
alarm[2] = room_speed * 1.5;