Memory

The dynamic Memory is based on the classic card game, in which you have to guess the same pairs starting from the face down cards.

Elements of Memory

Inspector

Game Settings

  • Couples: How many pairs of cards will your memory game be composed of? Choose through this menu.

  • Rows: Here you can decide on how many lines you want to lay out your cards. Choose according to your needs, the orientation of your device or its aspect ratio.

  • Card Back: This allows you to choose the look of the back of your cards.

  • Correct Answer: When you turn two of the same cards, the audio you set in this field plays.

  • Wrong Answer: If you turn over two different cards, the sound you have chosen is played through this field.

Smart Inspector

Image: Here you can choose the image to associate with your card.

How to assemble a Memory game

Let's take a simple scenario with five pairs of cards as an example.

The default game scene consists of 4 pairs of cards arranged on 2 rows. In our case, the ‘Couples’ field must be changed to indicate 5 pairs.

After importing the assets that interest us in their respective libraries (Image, Video, Animation) we are ready to assemble the game scene.

Select the 'Game Setting' inspector to change the general rules of the game. From the “Couple” drop-down menu we choose 5 couples.

We decide on an asset for the ‘Card Back’ field and close the ‘Game Settings’ inspector. The editor updates the layout with the chosen settings. Each pair of cards is marked with a number, in order to highlight the association between the two cards.

Select each card individually and customize the look using its smart inspector.

Customize the scene as you like!

The final result will be this:

Finally, set the game behavior from the ‘Scene settings’ inspector. Choose a soundtrack and background image. Decide if at the game’s completion you want to jump to a specific scene.

Going into preview, the cards will automatically arrange themselves in random positions, showing their previously set backs. On selection they will turn around. When a pair of cards is correctly associated, they will remain fixed and visible on the screen.

Last updated