G
graviax
Guest
Code:
if(level_finish != 1)
{
for(i=0;i<50;i++)
{
for(j=0;j<50;j++)
{
if(random_range(0,10)>8)
{
map[i,j] = 1;
}
}
}
for(i=0;i<50;i++)
{
for(j=0;j<50;j++)
{
if(map[i,j] == 1)//the joke
{
instance_create(i*16,j*16,obj_wall);
}
}
}
level_finish = 1;
}
and this is the error.
and I don't know how it can find a 51 between 0 and 50.
and the first double for loop seems to work so...