Creating actors problem :( *SOLVED*

Non-platform specific questions.

Creating actors problem :( *SOLVED*

Postby Hblade » 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?
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 :P
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

cron