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.
-
xceazyx
- Newbie
- Posts: 3
- Joined: Thu Dec 10, 2015 11:30 pm
-
Contact:
#1
Post
by xceazyx » Thu Dec 10, 2015 11:38 pm
Hello! I've not used renpy for very long, so forgive my ignorance on topics of all natures.
What I'm trying to do is display text in the top left and top right corners of the screen, simultaneously. I don't know much about displayables, I imagine there's got to be some problem with using the show text option. Here's what I have:
if weather_roll == 0:
show text "Sunny" at topleft with dissolve
elif weather_roll == 1:
show text "Sunny" at topleft with dissolve
elif weather_roll == 2:
show text "Sunny" at topleft with dissolve
elif weather_roll == 3:
show text "Sunny" at topleft with dissolve
elif weather_roll == 4:
show text "Sunny" at topleft with dissolve
elif weather_roll == 5:
show text "Cloudy" at topleft with dissolve
elif weather_roll == 6:
show text "Cloudy" at topleft with dissolve
elif weather_roll == 7:
show text "Raining" at topleft with dissolve
elif weather_roll == 8:
show text "Raining" at topleft with dissolve
elif weather_roll == 9:
show text "Raining" at topleft with dissolve
elif weather_roll == 10:
show text "T-Storms" at topleft with dissolve
if day_counter == 1:
show text "Sunday" at topright with dissolve
elif day_counter == 2:
show text "Monday" at topright with dissolve
elif day_counter == 3:
show text "Tuesday" at topright with dissolve
elif day_counter == 4:
show text "Wednesday" at topright with dissolve
elif day_counter == 5:
show text "Thursday" at topright with dissolve
elif day_counter == 6:
show text "Friday" at topright with dissolve
elif day_counter == 7:
show text "Saturday" at topright with dissolve
The problem I'm running into is getting both of the texts (weather and day) to show at the same time. As it stands, It will show the weather, but it then disappears and it just shows the day alone. I'm sure this is due to some misunderstanding of how displayable work, but I can't seem to figure it out using the tutorials I've found.
I'd greatly appreciate any help in getting this to work! Thank you very much.
-
Jae
- Regular
- Posts: 192
- Joined: Sun Sep 13, 2015 5:41 pm
- Projects: Pokémon Academy Life
- Location: New York, NY
-
Contact:
#2
Post
by Jae » Fri Dec 11, 2015 3:14 am
Use screens instead.
-
xceazyx
- Newbie
- Posts: 3
- Joined: Thu Dec 10, 2015 11:30 pm
-
Contact:
#3
Post
by xceazyx » Fri Dec 11, 2015 7:50 pm
Thank you for the tip!
I've been looking into screens a bit as I haven't really gotten much into how they work. Is there somewhere with tutorials for them (maybe with some examples and pictures of in-game results). Is it possible to have a screen display over the usual say screen (all the time(, for instance a screen with the day and weather that shows up in the corner during scenes?
Again, any help is appreciated. I'll keep tinkering and see what I can find out.
Thank you!
-
Jae
- Regular
- Posts: 192
- Joined: Sun Sep 13, 2015 5:41 pm
- Projects: Pokémon Academy Life
- Location: New York, NY
-
Contact:
#4
Post
by Jae » Sat Dec 12, 2015 5:16 am
You can have as many screens as you deem necessary.
Try visiting:
http://www.renpy.org/doc/html/screens.html
Basically you can just start off with:
Code: Select all
screen yourscreenhere():
do lots of things
all sorts of things
You can have a bunch of text show up with screens. You can throw images in. You can add buttons. You can call the screen up and hide it as you see fit.
-
xceazyx
- Newbie
- Posts: 3
- Joined: Thu Dec 10, 2015 11:30 pm
-
Contact:
#5
Post
by xceazyx » Mon Dec 14, 2015 11:03 pm
Coming back to say I got it all figured out! Thanks very much for your recommendations, Jae! It looks great and works perfect with a screen!