Memory Game Tutorial



Attached Files

The following files have been attached to this tutorial:



Download now 1.43 MB


6,803 visits, 16,685 views



This tutorial hasn't been translated.


This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Wow you have done enough have some rest. Rest time is over now it's code time

Now for sprites front-face we will needs to add some INSTANCES VARIABLES. Click on add instance variable and add imageNumber as number and destroy as Boolean. And for the other sprite add just selected as Boolean. That’s our work for screen done. We needs to add code so open Event Editor and start writing. Your code will have Global and also Local variables too.

TIP: if you don’t know how to crate Local variables then create global first and then drag that under wherever you want as local variable. Bingo it will be done automatically.

Global Variables remember uppercase and lowercase

cardsDestroed = 0

secondCard = 0

firstCard = 0

cardsTapped = 0

Now we are ready to add more code Start of our game

Don't forget to add sound, music and modify the way you like

That is all. I have included CAPX too. I hope you like it. God Bless



Download now 1.43 MB

  • Order by
Want to leave a comment? Login or Register an account!
  • Same here! Just the first sprite appears on second and third line. Any help?

  • Hola, me gustaría que expliquen este código que copio a continuación ya que estoy intentando hacer este juego de memoria y no lo puedo resolver.

    (((sprFaceup.ImagePointX("Origin") - 70) / 100) + (((sprFaceup.ImagePointY("Origin") - 150) / 125) * 6))

    Yo utilice otro formato de ficha por ende no se a q corresponden el 125 y el 6.


  • hello, thanks for the "memory card" tutorial, I'm having trouble creating a new level, when I create a new level the sprites don't change randomly, just take the first sprite, could you help me solve it? thank you very much and ten good day