Search found 126 matches

by strayerror
Thu Jan 21, 2021 10:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Split-second lag when playing videos
Replies: 13
Views: 127

Re: Split-second lag when playing videos

Maybe something like? image movie vid_case3_29 = Movie("videos/case 3/case 3 - 29.webm", start_image="images/frames/case 3/case 3 - 29 1.jpg", loop=False, size=(985,560), xpos=262, ypos=29, xanchor=0, yanchor=0) show movie vid_case3_29 If the above works, you could potentially also do something like...
by strayerror
Wed Jul 01, 2020 4:43 am
Forum: Ren'Py Cookbook
Topic: Simple Choice logging system
Replies: 4
Views: 666

Re: Simple Choice logging system (don't need to define 1000 variables)

Unless I misunderstand, I think the problem being solved here is already supported by Ren'Py proper - check out the menu set functionality (link below). It's implementation (using a set rather than a list) also addresses some of the concerns raised by Human Bolt Diary . https://www.renpy.org/doc/htm...
by strayerror
Tue Jun 30, 2020 2:02 pm
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED)Image changing height among changing x position, help?
Replies: 7
Views: 383

Re: Image changing height among changing x position, help?

It's not easy to fully grasp the problem you're having based on the initial description. Consider providing an example using _placeholder/girl.png and/or _placeholder/boy.png images (they're built into Ren'Py so the example could be run by anyone), and if necessary a screenshot or two of the proble...
by strayerror
Mon Jun 29, 2020 12:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Function to close all screens once
Replies: 1
Views: 256

Re: Function to close all screens once

By default all screens are placed on the screens layer by Ren'Py. The renpy.scene function is capable of clearing a layer. You can see where I'm going with this. If you were to introduce a new layer to your game (in this example I'm going to refer to and name it persistent , but so long as you know ...
by strayerror
Sat Jun 20, 2020 6:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Value in list not changing in loop
Replies: 2
Views: 250

Re: Value in list not changing in loop

If you hit the renpy.call(event.name) line, then control will not be returned to your function. The requested label will begin and the remainder of your code ignored. This is because internally renpy.call triggers an exception that will be caught and interpreted by the main event loop further up-sta...
by strayerror
Fri Jun 19, 2020 11:03 pm
Forum: Development of Ren'Py
Topic: Unknown pixel format
Replies: 0
Views: 1777

Unknown pixel format

Have there been any recent reports of "Unknown pixel format" errors coming from SDL2? I'm aware that an issue with desktops trying to use 16-bit colour was patched in 6.99.1 (https://lemmasoft.renai.us/forums/viewtopic.php?t=31351), however in the last few months I've seen multiple reports of this o...
by strayerror
Wed Jun 17, 2020 8:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Is that possible to hide/unhide textbutton?
Replies: 7
Views: 261

Re: Is that possible to hide/unhide textbutton?

True and False in your SetVariable calls should not be quoted. :) Additionally you could even simplify this to: screen admin_screen: default open = False if open: textbutton "Hello2" action SetScreenVariable('open', False) else: textbutton "Hello" action SetScreenVariable('open', True) Which has th...
by strayerror
Wed Jun 17, 2020 8:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible a texbutton with two colors? Doesn't work the hover color!
Replies: 3
Views: 237

Re: Is it possible a texbutton with two colors? Doesn't work the hover color!

So it seems it is possible to do this in a "Ren'Py" way, however the solution outlined by MaydohMaydoh is IMO considerably more practical in the majority of cases. The following is provided more as a point of interest, a log of my own curiosity and perhaps, just maybe, for specific cases where the a...
by strayerror
Wed Jun 17, 2020 7:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't apply im.MatrixColor to animated sprite
Replies: 2
Views: 207

Re: Can't apply im.MatrixColor to animated sprite

im.MatrixColor (and indeed all other im. functions) are only capable of operating on (for the sake of argument) image files. So to do what you want each real image being used must be individually treated, try: I've not had chance to test this, but it hopefully captures (at the very least) the gener...
by strayerror
Wed Jun 17, 2020 1:53 pm
Forum: Ren'Py Questions and Announcements
Topic: What's wrong with my python loop?
Replies: 5
Views: 256

Re: What's wrong with my python loop?

Depending on what you're doing, it might be a better idea to use a callback. Without more context however, only you can decide if it's appropriate or not - I'm guessing your real code is more complex. The code below will run the statement adjusting the X value each time a say occurs, but outside of ...
by strayerror
Thu Jun 11, 2020 5:40 am
Forum: Ren'Py Questions and Announcements
Topic: Close button
Replies: 3
Views: 251

Re: Close button

Scene clears the screen for you. It removes all currently showed images, and i think it includes screens too. I can't check right now but if I recall correctly: By default the scene function will only clear the master layer, however by changing it slightly to be Function(renpy.scene, layer='screens...
by strayerror
Wed Jun 10, 2020 10:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Is this possible?
Replies: 10
Views: 204

Re: Is this possible?

First, seems like there's a few misconceptions to to clean up here: 1) You can't use Javascript with Ren'Py. 2) Python is definitely capable of handling the maths involved in locating the cursor relative to a point in 2D space. 3) I don't think anyone here is bashing anyone else, just trying to shar...
by strayerror
Sun May 31, 2020 4:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Buttons in draggable vpgrid ignore drag attempts
Replies: 2
Views: 206

Re: Buttons in draggable vpgrid ignore drag attempts

Unfortunately I don't believe drags behave differently in this regard. The button would still swallow the drag attempt. Additionally as drags unconditionally render all content it would also incur a hefty performance cost when compared to the vpgrid which renders only children that will appear on sc...
by strayerror
Sun May 31, 2020 12:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Buttons in draggable vpgrid ignore drag attempts
Replies: 2
Views: 206

Buttons in draggable vpgrid ignore drag attempts

The setup: - Picture a large grid of buttons, let's say for example 10x10, 100 buttons. - There's space enough screen space to show a 5x4 subset. - It's the basis for a puzzle where the goal is to find the "correct" button. - I would like to be able to use draggable True on the vpgrid. - All the bu...
by strayerror
Sat May 30, 2020 10:25 pm
Forum: Ren'Py Questions and Announcements
Topic: How to center text in a textbutton?
Replies: 12
Views: 334

Re: How to center text in a textbutton?

How you tackle this hinges on what it is you actually want: - Do you want a button that's the size of the background image, with the text centred on it? - Or do you want a button that's the size of your text with the background adjusted to fill it? If the first, then MaydohMaydoh's solution along wi...