A
Artwark
Guest
So when the boss appears, I want it done so that the player has to defeat both the boss & the asteroids as well.
Here's how its done so far in the obj_control
Step event
if(!instance_exists(obj_asteroids))
{
instance_create(random(room_width),random(room_height),obj_asteroids);
instance_create(random(room_width),random(room_height),obj_asteroids);
instance_create(random(room_width),random(room_height),obj_asteroids);
instance_create(random(room_width),random(room_height),obj_asteroids);
instance_create(random(room_width),random(room_height),obj_asteroids);
tough.speed+=1;
global.Boss+= 1;
global.level++;
if global.Boss == 3
{
instance_create(480,160,obj_boss);
global.Boss = 0;
}
}
If I defeat the asteroids before the boss, the asteroids reappear again. I want it so that you have to defeat both the boss and the asteroids inorder to go to the next level.
How can I fix this?
Here's how its done so far in the obj_control
Step event
if(!instance_exists(obj_asteroids))
{
instance_create(random(room_width),random(room_height),obj_asteroids);
instance_create(random(room_width),random(room_height),obj_asteroids);
instance_create(random(room_width),random(room_height),obj_asteroids);
instance_create(random(room_width),random(room_height),obj_asteroids);
instance_create(random(room_width),random(room_height),obj_asteroids);
tough.speed+=1;
global.Boss+= 1;
global.level++;
if global.Boss == 3
{
instance_create(480,160,obj_boss);
global.Boss = 0;
}
}
If I defeat the asteroids before the boss, the asteroids reappear again. I want it so that you have to defeat both the boss and the asteroids inorder to go to the next level.
How can I fix this?