Does the issue occur in the editor or during gameplay?
Gameplay
If it's a gameplay issue, please specify which movement system and camera type you're using (free movement vs. grid movement, third-person vs. first-person) or N/A if not applicable:
N/A
Briefly describe the issue you're experiencing:
I have a script that generates a random terrain, Currently its flat but it seem to end early and only finishes half the script before giving up.
Are there any errors in the in-game debug console or external console window?
nope
Provide the steps necessary to reproduce the issue:
Place a platform at 0, 0, 16, and give it the "temporaryI" ID the run this script
hide_widget("titlea");
load_map("overworld", coord[0, 0, 16], SOUTH);
$G = "G";
$S = "S";
$Z = 5;
$rows = 50;
while $rows != 0 do
$placed = 50;
$X = -25;
while $placed != 0 do
if random(1, 2) == 1 then
add_tile("grass", coord[$X, $Z, 0], $G);
$X += 1;
$G += "A";
$placed -= 1;
else
add_tile("sand", coord[$X, $Z, 0], $G);
$X += 1;
$G += "A";
$placed -= 1;
end;
end ;
$rows -= 1;
$Z -= 1;
end;
remove_entity("temporaryI");
Provide a download link to the bare bones project (strongly recommended if it's an in-game issue, since this helps significantly when attempting to reproduce it; the report will also be given more priority in this case):