XaiJu
__ess__
__ess__

patreon


Ren'Py Memory Card Mini-game Tutorial Script

The tutorial that was voted to come next on my channel by those in the Voting tier is a memory card mini-game and has now been completed together with a video tutorial!

It is a pretty short tutorial, like the last one, and the code isn't too complex. Those of you in the Supporter tier or higher also have access to download the script by clicking the attachment link below.

Watch the tutorial for it to learn about how it works!

Enjoy! Feel free to leave a comment on the video on Youtube or on this post if you're wondering anything about the code or get issues with it, or if you simply appreciate it! 😊

Comments

You can just make your card images whatever size you'd like. If you're asking if there's a way to scale images in Ren'py, there's transforms you can look into: https://www.renpy.org/doc/html/transform_properties.html

Sara

are there any possible ways to scale the image down?

Aliq.

Well, the randomize_cards function creates random cards right? And since you don't want to have random cards but specific ones at specific spots, you'll have to manually add each type of card you want to the cards list. So either remove or comment out all the code in the function and then simply add 12 cards yourself. Ex: cards.append(["card-1", "deselected", "visible"]) cards.append(["card-1", "deselected", "visible"]) cards.append(["card-3", "deselected", "visible"]) cards.append(["card-4", "deselected", "visible"]) ... # Rest of the cards In the example above, first card matches second card. The order they are in the list are the order they will show in the grid. This will make a grid with the same cards in the same positions every time the game is played.

Sara

Hi!! thankyou, was wondering if we are able to manually change which card matches another card? e.g., i want card_A to match with card_B, how would we go about doing that? I've been trying everything and i just dont know how to do it ;( please help!

Imss


More Creators