Jump to content


Photo

need coding help


  • Please log in to reply
No replies to this topic

#1 FlashGameboy

FlashGameboy

    Young Padawan

  • Members
  • Pip
  • 139 posts
  • Gender:Male
  • Location:Somewhere over the rainbow
  • Interests:Mostly flash but im trying to work on Maya and some<br />signiture design

Posted 21 July 2005 - 07:33 PM

i need help with some bits of array and other coding for flash

im working on a pong and tetris game, for the tetris game im using a muti dimensienal array, im actually using a tut but i dont get it :bashhead:
- what does this part mean

tiles = new Array(12*22);
table = new Array(12*22);
RightLimit = new Array(16);
NextPiece = new Array(3);
count = 0;
  for (y=0; y<=21; y++) {      
       for (x=0; x<=11; x++) { 
            count++;        
            CurTile = "Tile"+count; 
            duplicateMovieClip ("Tile0", CurTile, count); 
            eval(CurTile)._x = x*18-112; 
            eval(CurTile)._y = y*18-200; 
            eval(CurTile).gotoAndStop(1);
     }
}
RightLimit[0] = 0;
RightLimit[1] = 8;
RightLimit[2] = 11;
RightLimit[3] = 10;
RightLimit[4] = 10;
RightLimit[5] = 9;
RightLimit[6] = 10;
RightLimit[7] = 9;
RightLimit[8] = 10;
RightLimit[9] = 9;
RightLimit[10] = 10;
RightLimit[11] = 9;
RightLimit[12] = 9;
RightLimit[13] = 10;
RightLimit[14] = 9;
RightLimit[15] = 10;
gotoAndPlay("NewGame");

can anyone tell me what this part does in my tetris game? I would really apreciate it :D The finished tetris game should look like the attached file also if you want to see the rest of the coding just ask me

I need help ASAP :D

Attached Files


Edited by FlashGameboy, 23 July 2005 - 08:39 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users