Page 1 of 1

X, Y and Arrays

PostPosted: Tue Aug 30, 2011 12:04 am
by Hblade
Making a tile editor, for some reason I can't seem to save the position of a tile so it constantly draws, I tried:
Code: Select all
if (DRAW==1) {
       if (X[TILECOUNT]!=TILE.x && Y[TILECOUNT]!=TILES.y) {
        CreateActor("Land", "Grass_02", "(none)", "(none)", TILES.x, TILES.y, true);
           TILECOUNT++;
                                                       }
             }
Which for some reason, there is a bar going accross the screen where the tiles can't get created, thats it. I'm so confused O-o

Create Actor: Land
Code: Select all
switch(TILE_NUM[0]) {
    case 0:
        ChangeAnimation("Event Actor", "Grass_01", FORWARD);
        break;
    case 1:
        ChangeAnimation("Event Actor", "Grass_02", FORWARD);
        break;
                    }


X[TILECOUNT]=x;
Y[TILECOUNT]=y;


heh, any help?