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: 27
Joined: Mon Sep 17, 2018 1:43 pm
Contact:

Random Image

#1 Post by SaladDressing »

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
Miko-Class Veteran
Posts: 715
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Random Image

#2 Post by Andredron »

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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Andredron