EDIT: try again, I just changed that code




yscreen = palkki.yscreen;
if(change == 0 && x > -100)change = 1;
if(change == 1) {
populationLimit = (x + 100) / 4;
if(x < -100)x = -100;
if(x > 100)x = 100;
}yscreen = pakki.yscreen + pakki.height / 2;

x = pakki.x + pakki.width / 2;

Users browsing this forum: No registered users and 1 guest