Creating actors problem :( *SOLVED*
Posted: Tue Apr 30, 2013 11:49 pm
So the new tile editor Im working on (I find it fun) I'm having issues creating tiles, It creates them perfectly fine on the first row but the rows after are "pushed over" a bit?
This is the code I'm using to create the 100x100 tiles. The top row is normal but every row under that is 32 pixels pushed to the left (At least I think, that or the top left tile is missing for some reason)
EDIT:
I have a workaround ^^
EDIT 2:
HAHA Wow its because I had CreateActor AFTER everything
- Code: Select all
int i, i2, TEMP;
while(i<100 && i2<100)
{
i++;
if(i==100)
{
i=0;
i2++;
}
CreateActor("Tiles", "MainTiles", "(none)", "(none)", -16+i*32, 16+i2*32, false);
}
This is the code I'm using to create the 100x100 tiles. The top row is normal but every row under that is 32 pixels pushed to the left (At least I think, that or the top left tile is missing for some reason)
EDIT:
I have a workaround ^^
EDIT 2:
HAHA Wow its because I had CreateActor AFTER everything