sinigrimi
Member
Hello!
I have 560 ready rooms for the test rooms for the player (this is only at the first level, LOL), but to enter them as the example below seems to be hell. Is there a way to speed it up or will you have to spend a lot of time?
I also have a fork between the scripts, it will not affect the performance and speed of the code?
this is just one option, and when there are 20 of them it looks huge
I have 560 ready rooms for the test rooms for the player (this is only at the first level, LOL), but to enter them as the example below seems to be hell. Is there a way to speed it up or will you have to spend a lot of time?
I also have a fork between the scripts, it will not affect the performance and speed of the code?
Code:
if random_beeRoom ==0{ //#1 bee
instance_create_layer(180,180,"Instances",oBee);
instance_create_layer(1740,180,"Instances",oBee);
instance_create_layer(180,300,"Instances",oStone);
instance_create_layer(300,300,"Instances",oStone);
instance_create_layer(420,300,"Instances",oStone);
instance_create_layer(780,300,"Instances",oStone);
instance_create_layer(1140,300,"Instances",oStone);
instance_create_layer(1500,300,"Instances",oStone);
instance_create_layer(1620,300,"Instances",oStone);
instance_create_layer(1740,300,"Instances",oStone);
instance_create_layer(540,420,"Instances",oStone);
instance_create_layer(660,420,"Instances",oStone);
instance_create_layer(1260,420,"Instances",oStone);
instance_create_layer(1380,300,"Instances",oStone);
instance_create_layer(540,660,"Instances",oStone);
instance_create_layer(660,660,"Instances",oStone);
instance_create_layer(1260,660,"Instances",oStone);
instance_create_layer(1380,660,"Instances",oStone);
instance_create_layer(180,900,"Instances",oBee);
instance_create_layer(1740,900,"Instances",oBee);
instance_create_layer(180,780,"Instances",oStone);
instance_create_layer(300,780,"Instances",oStone);
instance_create_layer(420,780,"Instances",oStone);
instance_create_layer(780,780,"Instances",oStone);
instance_create_layer(1140,780,"Instances",oStone);
instance_create_layer(1500,780,"Instances",oStone);
instance_create_layer(1620,780,"Instances",oStone);
instance_create_layer(1740,780,"Instances",oStone);