Random Image

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
SaladDressing
Regular
Posts: 25
Joined: Mon Sep 17, 2018 1:43 pm
Contact:

Random Image

#1 Post by SaladDressing » Mon Sep 17, 2018 1:55 pm

Hello there,
I am really new to ren'py and am currently coding a card game. Now I want to display a random card from ace to king. I know there is the show expression but I have really no clue how to use it and how to define the variable which chooses the random image. I only have this:
show expression firstCard

I appreciate every help!
Cheers

User avatar
Andredron
Veteran
Posts: 207
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Random Image

#2 Post by Andredron » Mon Sep 17, 2018 3:24 pm

SaladDressing wrote:
Mon Sep 17, 2018 1:55 pm
Hello there,
I am really new to ren'py and am currently coding a card game. Now I want to display a random card from ace to king. I know there is the show expression but I have really no clue how to use it and how to define the variable which chooses the random image. I only have this:
show expression firstCard

I appreciate every help!
Cheers
Card game?
viewtopic.php?p=475772#p475772
I know, I have terrible English
I'm writing a Renpy textbook (in Russian). I would be glad if someone translated into an English or German textbook https://yadi.sk/d/ZX_DonP63USRru Update 22.06.18

Post Reply

Who is online

Users browsing this forum: Nero