Animation doesnt work...Urgent help

edited April 2016 in Android Mode

`void enemyMove(){

for(int i=0;i<World.WIDTH;i++) { for(int j=0;j<World.HEIGHT;j++) { if(newWorld.LEVEL[j][i]==World.ENEMY) { print(newWorld.LEVEL[j][i]); if(newWorld.LEVEL[j][i-1] == World.WALL){ print("Wall left"); smer = 1;

   }
   else if(newWorld.LEVEL[j][i+1] == World.WALL){
     print("Wall right");
     smer = -1;
   }
   newWorld.LEVEL[j][i+(smer)] = World.ENEMY;
   newWorld.LEVEL[j][i] = World.SPACE;  


   }
 }

} }`

Tagged:
Sign In or Register to comment.