1 Reply Latest reply on Feb 1, 2011 11:04 PM by M.S.H

    Guidence needed for FlashLite AS2, newbie here

    forsakenedsj


      I'm very new in gaming programming (Flash Lite 2.1)

      I'm doing a mancala (cong kak) game

      Thus i have 12 movieclips.

      [12] [11] [10] [9] [8] [7]

      [1]  [2]   [3]  [4] [5] [6]

      lets assume this is the mancala board... [] - are buttons, label number  is movieclip, inside this movieclip will have balls, from 0 to  at most 36. So i want click one button (indirectly click movieclip) and  let the movieclip add balls.

      Example. inside 1 got 3 balls, click 1, become 0 ball, it will go to 2  and drop 1, den go to 3 to drop 1, den go to 4 to drop 1...

       

      1) how to detect key pressed and just remove ball accordingly and add balls?

      2) how to detect the last ball? cox i need the last ball to determine whether the player lose turn or have another turn....

      any ideas?? thanks..