Where to go now

Test your AS3 skills adding new features to the game. I am giving you two suggestions:

  1. Detect when the player completed the game. You can easily do it by creating a new instance variable that counts the successful matches and checks if they are equal to the total number of tiles / 2.
  2. Count how many tries the player is making using another instance variable that you'll increment every time the player picks the second tile. Print these values in the Output window.

Get Flash Game Development by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.