If you go carefully through the tutorial it shows you how to change the difficulty in video 3b at about 7:25) You don't change the code. All you do is change the global variables gNumberCards, gNumberColumns and gNumberRows. The number of cards must be even and the number of rows * the number of columns must equal the number of cards. So go take out any changes where you made it gNumberCards/2.

To use different decks of cards, just add additional card face and card back animations and set the animations you want to use when you load the layout just like it was shown in the final video for special sets of cards. (You can duplicate existing animations and replace them with your graphics.)

To make it work from the main menu, just make changes to the global variables in the menu before you start the game layout. You'll need to add a global variable for the card back animation and card facenumber of cards and name of the animations you want to use in global variables in the main menu layout. Then call the game layout and issue the set animation action on start of layout.

Yes, what Epox said. He used the same memory match to tutorial to publish a fun children's game, complete with the menus and beautiful graphics. Yeah!

Regarding the confusion on global variables, absolutely you can change them at runtime. However you have to be careful WHEN you change them. You don't want the change the number of cards in the middle of the game, for example. But you can change it at the start of the layout or in a different layout.

In some programming languages there is a concept of constants, where are set at the beginning and are not allowed to change. Construct 2 does not have that concept (although I sometimes pretend it does by convincing myself that any variable I name in all capital letters is not allowed to be changed during the game.

Coming from a purist background (I love coding in all sorts of machine code and everything that is modular/functional), it took me quite some time to wrap my head around Construct 2's principles. Thankfully, it's still more feasible than manually programming in any of those silly OOP languages.

EDIT: Here's one of the art I was going to use in the first, cat themed deck.

Hope the style isn't putting people off.

I'd love to jumpstart my career as a game developer with that little app. I'm currently employed as a regular web developer but wouldn't mind launching my own little indie game label.Blinx1232012-08-24 21:27:05

@Blinx123 wish you good luck with one of the best learning "templates/tutorials". You will earn good experiance with this memory game, cause you have easy to understand pieces in it and also have some more advanced like arrays - and the handlign of them in C2.