M
MasterGrey
Guest
Ok so here is my code
its giveing me errors saying that i cannot set a constant to a vaule and all i did was do 1=yy;???????
Plus im trying to add another layer you could assist or not but still this is quite strange when i use gamemaker
All the code worked before now im getting issues any help im all ears.
I think i should have used unity and made a 3d version because this game maker is too buggy.
My galaxy by the way
Code:
var sh=(room_height/2)-floor(random(room_height/3));
sh=(sh/100)*100;
var ah=sh;
var dirt_level;
var dirt_level2;
var stone_level;
var bedrock_level;
var l;
for(xx=0;xx<room_width;xx+=100)
{
z = floor(random(17));
if(z == 0)
instance_create(xx,ah,object_grass_planet_grass);
dirt_level=((room_height-ah)/100)*100;
dirt_level2=(room_height)/100*100;
stone_level=(room_height)/100*100;
ah+=choose(100,-100,0);
for(yy=ah;yy<dirt_level;yy+=100)
{
instance_create(xx,yy+100,object_grass_planet_dirt)
1=yy;
for(yy=1;yy<dirt_level2;yy+=100)
{
instance_create(xx,yy+100,object_grass_planet_dirt2)
for(yy=2;yy<stone_level;yy+=100)
{
if(yy>=ah)
instance_create(xx,yy+100,object_grass_planet_stone)
else instance_create(xx,yy+100,object_water);
}
}
}
}
its giveing me errors saying that i cannot set a constant to a vaule and all i did was do 1=yy;???????
Plus im trying to add another layer you could assist or not but still this is quite strange when i use gamemaker
All the code worked before now im getting issues any help im all ears.
I think i should have used unity and made a 3d version because this game maker is too buggy.
My galaxy by the way