X, Y and Arrays

Non-platform specific questions.

X, Y and Arrays

Postby Hblade » 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:
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?
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest