Search found 159 matches

by strayerror
Fri Feb 05, 2021 3:26 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] start and stop skipping
Replies: 7
Views: 726

Re: start and stop skipping

This will skip lines if they were seen before label start: "..." $ config.skipping = True [...] Alex was on the right track, but if I understand correctly, I think swapping out True for 'fast' will give you the behaviour you're looking for. i.e. $ config.skipping = 'fast' P.S. You may wan...
by strayerror
Sun Jan 24, 2021 5:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Add blur to character callback?
Replies: 4
Views: 489

Re: Add blur to character callback?

This looked interesting and so decided to take a quick run at it. Be aware that this is just rushed concept code , so there may be problems with it I've not noticed yet, or won't become apparent except in more complex scenarios, most especially the "reset" call, which I'm fairly certain th...
by strayerror
Sun Jan 24, 2021 4:22 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Custom mouse cursor in 7.4.x
Replies: 6
Views: 877

Re: Custom mouse cursor in 7.4.x

As Andy said in the first reply, you need to use the new preference. You can do so like this: # This line is an example, and likely doesn't need to change in your code from what was working prior to 7.4. define config.mouse = {'default': [('gui/cursor.png', 1, 1)]} [...] # The new preference to use ...
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: 1639

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 al...
by strayerror
Wed Jul 01, 2020 4:43 am
Forum: Ren'Py Cookbook
Topic: Simple Choice logging system
Replies: 4
Views: 1280

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: 808

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: 316

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: 308

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: 5915

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...
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: 460

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'...
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: 409

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 w...
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: 262

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: 1162

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: 339

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: 1580

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...