3 Replies Latest reply on Apr 12, 2010 6:48 AM by kglad

    Tetris game problem

    dalcde Level 1

      I'm using AS2 and fps120.

      I'm creating a tetris game, but I encountered a problem:

      I made a function which makes the block go directly to the bottom on the press of "space".

      I used




      But when I pressed space, the blocks stacked up immediately. It's because after I press space, another block apears immediately and goes to the bottom immediately, and keeps going until I release spade. It isn't a problem if I use lower fps, but my fps is 120, which means even I release space as quickly as I could, at least six blocks would stack up. I want to know is there anyway to detect the releasing of "space" or a detection which only detects on the instant I press, instead of when the key is down.