Thank you so much!
I followed your recommendation and it works perfectly.
But I have another problem. The minigame performance is very slow (yet).
I was thinking that instead of using all 52 cards in the desk, I would only have 3 cards appear (I would have to apply a 'random' to the 3 cards to randomly show the 52 cards but not in a row).
Code: Select all
# the list of cards will be of 3, but implicitly it must carry the 52 cards
default cards_list = [
{"name":"uno", "img":"card_face_1", "x_pos":197, "y_pos":202},
{"name":"dos", "img":"card_face_1", "x_pos":197, "y_pos":202},
{"name":"tres", "img":"card_face_1", "x_pos":197, "y_pos":202},
]
default cards = ("img/card1.png", "img/card2.png", (...), "img/card52.png") #<---- does not work
default card_face_1 = renpy.random.shuffle(cards) <---------------------------------------------|
I tried every way I know how to get the cards to appear randomly, but:
1.- It does not show the image associated with the variable assigned to it.
2.- It only appears in order (of the first 3 cards, which is not random).