X, Y and Arrays
Posted: Tue Aug 30, 2011 12:04 am
Making a tile editor, for some reason I can't seem to save the position of a tile so it constantly draws, I tried:
Create Actor: Land
heh, any help?
- 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++;
}
}
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?