What you're looking for is answered here viewtopic.php?f=8&t=40010#p426163
Considering this was posted only two days ago, you really should try and look for things before asking questions. The simpler the question the more likely the answer exists already.
Search found 73 matches
- Sun Aug 28, 2016 4:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to make a Gui Screen that displays your money.
- Replies: 8
- Views: 1591
- Wed Aug 24, 2016 8:24 am
- Forum: Ren'Py Questions and Announcements
- Topic: Show an image If a boolean is False.
- Replies: 2
- Views: 675
Re: Show an image If a boolean is False.
Not entirely sure whether you want to show the image but not with dissolve if the variable is set to true so... if you want only the dissolve part to be controlled by the variable: if afternoon01_NotPunchDidac: # (is equal to True) show afternoon01_Bathroom DidacBeated else: # (is not equal to True)...
- Mon Aug 22, 2016 8:23 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with the IF fuction
- Replies: 12
- Views: 1528
Re: Help with the IF fuction
Something like this? label start: "this is the main path" menu: "optional path?": $ optional_path = True "carry on main path": $ optional_path = False if optional_path: "this is the optional path" "this is continuing the main path" Alternate version ...
- Sun Aug 21, 2016 4:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Textbutton's text doesn't conform to Style
- Replies: 2
- Views: 3551
Re: Textbutton's text doesn't conform to Style
Textbuttons are actually two screen elements wrapped in one: style "mbutton" # styles the button itself text_style "mbuttontext" # styles the button's text So you need to make a second style which controls the text size, and apply that to the text_style parameter of the textbutto...
- Sun Aug 21, 2016 8:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can a python function create and return an ATL transform?
- Replies: 3
- Views: 2610
Re: Can a python function create and return an ATL transform
I don't see why not, an ATL transform is a Class so once instantiated should be able to be returned as normal.
- Sat Aug 20, 2016 11:13 am
- Forum: Ren'Py Questions and Announcements
- Topic: Group textbuttons with same background and aligned
- Replies: 4
- Views: 947
Re: Group textbuttons with same background and aligned
With backgrounds you have two options to make them transparent: 1 remove the frame, 2 set the background to "#00000001" Let me strip this down further so you can understand the base principles going on here: screen tips(): vbox: hbox: #box 1 vbox: #row 1 label "label instead of tb&quo...
- Tue Aug 16, 2016 4:18 am
- Forum: Ren'Py Questions and Announcements
- Topic: Name tag customization
- Replies: 6
- Views: 1416
Re: Name tag customization
If the name and the text box are being showed are on two different screens then you can use zorder to sort them:
https://www.renpy.org/doc/html/screens. ... -statement
https://www.renpy.org/doc/html/screens. ... -statement
- Mon Aug 15, 2016 9:22 am
- Forum: Ren'Py Questions and Announcements
- Topic: Fade Problems?
- Replies: 2
- Views: 613
Re: Fade Problems?
I wonder what full-screen resolution you're using when you get the problem, and if you change your desktop resolution and test it would you still get the problem? If not, sounds like a rounding error on the calculation of the fade animation but PyTom would be the one who could look at this in more d...
- Sat Aug 13, 2016 11:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: Group textbuttons with same background and aligned
- Replies: 4
- Views: 947
Re: Group textbuttons with same background and aligned
It's just a case of how you're applying the layout through a grid. I wouldn't use a grid in this case: First use a frame for the dark grey background in your picture. Then split that frame into three vboxes (technically five, two are for your titles, see below) Then put your hboxes of buttons inside...
- Thu Aug 11, 2016 12:21 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Randomising the location of an object
- Replies: 4
- Views: 950
Re: Randomising the location of an object
Not quite, you're wanting to ask if the key_location is equal to the location you're at. e.g. elif result == "bowl": if "bowltable" in efound: t "..." else: $ efound.append("bowltable") if key_location == "bowltable": #this is the if statement you're...
- Thu Aug 11, 2016 11:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: show variable in right corner [SOLVED]
- Replies: 13
- Views: 2263
Re: show variable in right corner
As a Karate Instructor in my spare time, I've come to appreciate that a viable way to improve at something is to teach it to others. There's a quote I'm fond of though I forget the source: "docendo disco, scribendo cogito" meaning "I learn by teaching, I think by writing". Sadly ...
- Thu Aug 11, 2016 11:29 am
- Forum: Ren'Py Questions and Announcements
- Topic: show variable in right corner [SOLVED]
- Replies: 13
- Views: 2263
Re: show variable in right corner
That's the only way I know. I would recommend (if you know how) building a function that both updates the money and refreshes (re-shows) the screen. That way you won't ever forget to update the screen.de_nederlander wrote:do I have to hide and show it again
- Thu Aug 11, 2016 11:23 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Randomising the location of an object
- Replies: 4
- Views: 950
Re: Randomising the location of an object
Code: Select all
$ key_location = renpy.random.choice(["coatpocket", "pottable", "baghook", "bowltable"])
- Thu Aug 11, 2016 11:03 am
- Forum: Ren'Py Questions and Announcements
- Topic: show variable in right corner [SOLVED]
- Replies: 13
- Views: 2263
Re: show variable in right corner
see https://www.renpy.org/doc/html/screens.html#text and follow the links for the properties you can apply to text.
also see https://www.renpy.org/doc/html/screens.html#frame for the links for the properties you can apply to the frame
also see https://www.renpy.org/doc/html/screens.html#frame for the links for the properties you can apply to the frame
- Thu Aug 11, 2016 10:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: show variable in right corner [SOLVED]
- Replies: 13
- Views: 2263
Re: show variable in right corner
A simple example:
Code: Select all
screen show_money():
frame:
xalign 1.0
text str(money)
label start:
default money = 10
show screen show_money
"test"