2 Replies Latest reply on Nov 28, 2006 8:08 AM by duckets

    Problem with Lists

      I have an image on screen which is divided into sections. When the user clicks on a section with a hazard in it, their score is incremented. At the moment if the user clicks on the same section again the counter increments again. I need to create a list that stores which sprite has already been clicked so that the counter doesn't increment when it is clicked again. Can anyone help?

      --create empty list
      hazardList = [ ]
      --get number of sprite being pressed
      temp = sprite(me.spriteNum)
      --store the sprite number in the hazardList
      --check hazardList for sprites already selected