R
RetroCop
Guest
my code
if (instance_number(obj_boss1)>0) exit;
if (instance_number(obj_boss2)>0) exit;
if (room_exists(lv_1)) instance_create(x+500,y+350,obj_boss1)
if (room_exists(lv_2)) instance_create(x+500,y+350,obj_boss2)
the problem is that both spawn in each room instead of boss1 spawning in lv_1 and boss2 in level_2
if (instance_number(obj_boss1)>0) exit;
if (instance_number(obj_boss2)>0) exit;
if (room_exists(lv_1)) instance_create(x+500,y+350,obj_boss1)
if (room_exists(lv_2)) instance_create(x+500,y+350,obj_boss2)
the problem is that both spawn in each room instead of boss1 spawning in lv_1 and boss2 in level_2