Search found 101 matches

by MaydohMaydoh
Tue Jul 31, 2018 1:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Show success rate with non-uniform probability distribution.
Replies: 6
Views: 332

Re: Show success rate with non-uniform probability distribution.

When you want to access something in a list or tuple, you can use indexing. In this case you want to access the first tuple in the list which would be results[0] Which would return ('success',1 +atk) . But you want to access the second value in the tuple so you use results[0][1] Which returns the su...
by MaydohMaydoh
Tue Jul 31, 2018 8:45 am
Forum: Ren'Py Questions and Announcements
Topic: Showing a screen with a transform from a specific location[not possible]
Replies: 15
Views: 1349

Re: Showing a screen with a transform from a specific location

Dunno why it's doing that but as a work around, maybe you could try using crop instead of moving it transform slide_vertical: crop_relative True yanchor 0 on show: crop (0.0, 1.0, 1.0, 1.0) linear .36 crop (0.0, 0.0, 1.0, 1.0) on hide: crop (0.0, 0.0, 1.0, 1.0) linear .36 crop (0.0, 1.0, 1.0, 1.0)
by MaydohMaydoh
Tue Jul 31, 2018 1:15 am
Forum: Ren'Py Questions and Announcements
Topic: How to get frame to autoscale when having fixed children?
Replies: 5
Views: 236

Re: How to get frame to autoscale when having fixed children?

Don't know if this would help you or not but instead of using imagebuttons with text, I use textbutton and just change the background, hover_background etc. Also I never use fixed so I'm not sure how it works, but try giving it the xfit False and yfit False styles. https://www.renpy.org/doc/html/sty...
by MaydohMaydoh
Tue Jul 31, 2018 12:21 am
Forum: Ren'Py Questions and Announcements
Topic: How to design the Main Menu and Game Menu separately
Replies: 3
Views: 301

Re: How to design the Main Menu and Game Menu separately

Just to add to this, another thing you could do is give the navigation screen a position depending on if the main menu screen is shown. Something like: screen navigation(): vbox: if renpy.current_screen().screen_name[0] == "main_menu": xalign 0.5 ##etc Where your default position is to something lik...
by MaydohMaydoh
Mon Jul 30, 2018 10:00 pm
Forum: Ren'Py Questions and Announcements
Topic: How to get frame to autoscale when having fixed children?
Replies: 5
Views: 236

Re: How to get frame to autoscale when having fixed children?

"This creates an area to which children can be added. By default, the fixed expands to fill the available area, but the xmaximum and ymaximum properties can change this." https://www.renpy.org/doc/html/screens.html#fixed And as far as I'm aware, you should only really use fixed if you have no other ...
by MaydohMaydoh
Mon Jul 30, 2018 7:20 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with Choice Screen Text [SOLVED]
Replies: 2
Views: 207

Re: Problem with Choice Screen Text

For the style font size it should be size 20 not size "20"
by MaydohMaydoh
Mon Jul 30, 2018 3:47 am
Forum: Ren'Py Questions and Announcements
Topic: How to make LIs have a sexual orientation?
Replies: 5
Views: 363

Re: How to make LIs have a sexual orientation?

I think what Per K Grok means is make a variable with the gender and use that to determine what options in choice menus appear. For instance, getting a choice of who to visit on the weekend but your selection depends on your gender. But instead of using multiple menus, you could use the if clause. d...
by MaydohMaydoh
Sun Jul 29, 2018 11:44 am
Forum: Ren'Py Questions and Announcements
Topic: Renpy severely reducing volume of voice files
Replies: 8
Views: 665

Re: Renpy severely reducing volume of voice files

Can you post the code that you're using for the volume bar?
by MaydohMaydoh
Sun Jul 29, 2018 11:18 am
Forum: Ren'Py Questions and Announcements
Topic: Renpy severely reducing volume of voice files
Replies: 8
Views: 665

Re: Renpy severely reducing volume of voice files

Have you tried

Code: Select all

define config.default_voice_volume = 1.0
to set voice volume to max?

You need to delete persistent before it takes effect.
by MaydohMaydoh
Sun Jul 29, 2018 6:36 am
Forum: Ren'Py Questions and Announcements
Topic: "Are you sure you want to overwrite your save?" Window Disabling
Replies: 6
Views: 399

Re: "Are you sure you want to overwrite your save?" Window Disabling

Alternatively if you can't get it to work, I guess you could remake the FileAction function and put it where ever you define your python statements rather than editing the main renpy files. def FileAction(name, page=None, **kwargs): if renpy.current_screen().screen_name[0] == "load": return FileLoad...
by MaydohMaydoh
Sun Jul 29, 2018 6:25 am
Forum: Ren'Py Questions and Announcements
Topic: "Are you sure you want to overwrite your save?" Window Disabling
Replies: 6
Views: 399

Re: "Are you sure you want to overwrite your save?" Window Disabling

Oh sorry, the tab error is because I used tab while typing it out here instead of using space. To used to having tab converted to spaces. As for the second error, try moving the statement to the bottom of the button, after the has statement. I never use the has statement so I'm not entirely sure but...
by MaydohMaydoh
Sun Jul 29, 2018 4:44 am
Forum: Ren'Py Questions and Announcements
Topic: "Are you sure you want to overwrite your save?" Window Disabling
Replies: 6
Views: 399

Re: "Are you sure you want to overwrite your save?" Window Disabling

Only way I can see how to do it is to change the file slots screen and change the button action to FileLoad and FileSave instead of FileAction. So instead of button: action FileAction(slot) use button: if renpy.current_screen().screen_name[0] == "load": action FileLoad(slot) else: action FileSave(sl...
by MaydohMaydoh
Sat Jul 28, 2018 2:01 pm
Forum: Ren'Py Questions and Announcements
Topic: 2 in one
Replies: 4
Views: 214

Re: 2 in one

1. Non-animated GIF and BMP files are also supported, but should not be used in modern games. https://www.renpy.org/doc/html/displayables.html#Image 2. Yes. You can create a new layer above the screens layer and display the image using onlayer. https://www.renpy.org/doc/html/displaying_images.html#l...
by MaydohMaydoh
Sat Jul 28, 2018 9:45 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] GUI customization - Help & Preferences menu
Replies: 1
Views: 161

Re: GUI customization - Help & Preferences menu

If you're just looking to show multiple lines in a paragraph, use \n in the string to make a new line.

Code: Select all

text "This is line one \nThis is line two \nThis is line three \netc"
https://www.renpy.org/doc/html/text.htm ... characters
by MaydohMaydoh
Sat Jul 28, 2018 3:46 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Easein / easeout on the overlay layer
Replies: 2
Views: 253

Re: Easein / easeout on the overlay layer

I played around with it for a bit and it seems to work if you make a new layer to display the image on. define config.layers = [ 'master', 'transient', 'screens', 'overlay', 'customlayer' ] You also need to tell it what layer to hide on as well it seems. show success onlayer customlayer with easeoli...