DreemyChara
Member
hey i'm starting my project of making a video game, problem i want to do it in an isometric view, after searching for tutorials i decided to try and code it, i did it well, but once i ve added the coding for movements the map bugged and showed only one line of tiles since i didnt know where the problem came from i deleted the movement codes taht i just did and the problem persists, tried to debug it and the only thing i can find that may cause that is a loop that doesnt loop line 6
please help T^T
Code:
var tiledata, screenX, screenY, tileindex, tileZ;
for (var tX = 0; tX < Map_w; tX++)
{ for (var tY = 0; tY < Map_h; tY++)
{
tiledata = global.theMap[# tX, tY]
screenX = Script2(tX, tY);
screenY = Script3(tX, tY);
tileindex = tiledata[tiles.sprite];
tileZ = tiledata[tiles.Z];
if (tileindex != 0) { draw_sprite(tile, tileindex - 1, screenX, screenY + tileZ)}
}
}
Last edited: