How can I make the background picture on the title screen random?
Explaining Better:
There are three pictures (tree, cat, mountain for example); and every time you open the game it can be any one of these. You could open and see the cat picture, and the next time you close the game it may be the cat again, or show either the tree or the mountain picture.
Sorry if it's confusing, english isn't my native language
Title Screen Random Background
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.
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.
-
- Newbie
- Posts: 1
- Joined: Fri Feb 19, 2016 6:11 pm
- Contact:
Re: Title Screen Random Background
Code: Select all
background = renpy.random.choice(['cat.png', 'tree.png', 'mountain.png'])
Who is online
Users browsing this forum: NeonNights