Search found 1926 matches
- Wed May 15, 2024 1:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with in-screen audio player issues (restarting music, unable to truly 'pause'))
- Replies: 5
- Views: 124
Re: Help with in-screen audio player issues (restarting music, unable to truly 'pause'))
Conceptually, given that this is a radio, it seems like the track shouldn't be pausable in the first place. Would it make more sense to simply have separate registered channels for all the signals, which are muted on/off instead? (I don't know what this would look like performance wise, I'm just thr...
- Mon May 06, 2024 7:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Problem with screen action "Hide" (and layers ?)
- Replies: 5
- Views: 267
Re: Problem with screen action "Hide" (and layers ?)
Hiding screens also takes a _layer argument. https://www.renpy.org/doc/html/screen_actions.html#Hide
- Sun May 05, 2024 3:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problems with translation in image composite Text
- Replies: 3
- Views: 218
Re: Problems with translation in image composite Text
I'm unable to reproduce this. If you throw this into an empty project and run it (latest stable version), it works. (I chose pig latin because that will auto generate translations, but you can do it with any language.) image test_composite = Composite( (300, 300), (0, 0), Solid("#FFF9", xy...
- Sat May 04, 2024 1:34 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Showing a screen behind sprites ?
- Replies: 4
- Views: 279
Re: Showing a screen behind sprites ?
Well, I don't have your images and don't know what you're seeing, so keep in mind that this is difficult to answer, but: - check whether there isn't any default background being shown (clear the master layer with an empty scene statement) - the syntax is either show screen forest_glade_1 onlayer but...
- Thu May 02, 2024 8:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Unable to add name function to renpy.random.choice
- Replies: 1
- Views: 675
Re: Unable to add name function to renpy.random.choice
While it is unclear what your actual problem is, I assume it's double interpolation. The simplest way to make this work is probably to use renpy.say ( $ renpy.say(e, random_dialogue) ) instead of a standard say statement (e "[random_dialogue]").
- Thu May 02, 2024 8:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Showing a screen behind sprites ?
- Replies: 4
- Views: 279
Re: Showing a screen (and images) with unclickable imagebuttons ?
You can use the sensitive property for this (https://www.renpy.org/doc/html/screens. ... sitive_alt )
- Tue Apr 30, 2024 12:01 am
- Forum: Ren'Py Questions and Announcements
- Topic: Custom GUI - Button and slider alignment/positioning
- Replies: 6
- Views: 262
Re: Custom GUI - Button and slider alignment/positioning
Hard to say without either your assets or your code, but in general try looking into align properties (https://www.renpy.org/doc/html/style_properties.html#style-property-yalign) or gutter properties (https://www.renpy.org/doc/html/style_properties.html#style-property-top_gutter). In the case of the...
- Mon Apr 29, 2024 11:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: Making an imagebutton move from within python function
- Replies: 10
- Views: 396
Re: Making an imagebutton move from within python function
My bad, that should be a repeating timer.
Code: Select all
screen repeating_function():
default counter = 0
timer 0.5 repeat True action If(counter < len(path), [Function(move_testcar, counter), IncrementScreenVariable("counter")], Hide())
- Mon Apr 29, 2024 8:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: Defining Drag as displayable
- Replies: 4
- Views: 204
Re: Defining Drag as displayable
*shrug* tbh not sure, I don't tend to use Drags() much. That said, I haven't really found any reason to need Drags(), since you can always build the drags programmatically if you need to get data from elsewhere. For example: init python: def rice_dragged(drags, drop): print("rice") def egg...
- Mon Apr 29, 2024 3:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: Making an imagebutton move from within python function
- Replies: 10
- Views: 396
Re: Making an imagebutton move from within python function
Ah, yes, I had skimmed the part of the OP that said that. Well, the principle remains the same, I guess, just adjusted to move one "step" at a time and wait before moving to the next step. I would probably use a timer to repeatedly call the function on a small delay. screen repeating_funct...
- Mon Apr 29, 2024 12:39 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Need help for name choice
- Replies: 2
- Views: 181
Re: Need help for name choice
Use either of the following if checks:
Code: Select all
if Name == "A" or Name == "B" or ... :
if Name in ["A", "B" ... ]:
- Mon Apr 29, 2024 12:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: Making an imagebutton move from within python function
- Replies: 10
- Views: 396
Re: Making an imagebutton move from within python function
While you CAN use a CDD for finer control, you also don't need it for simple linear movement. (Sidenote: I don't understand how your move_testcar function is supposed to work in the context of the game, but I assume that's due to it being edited for posting here.) init python: def move_testcar(): gl...
- Sun Apr 28, 2024 10:34 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Defining Drag as displayable
- Replies: 4
- Views: 204
Re: Defining Drag as displayable
The following mostly seems to work. For reference, supplying transforms to a drag using at is not supported even when using screen drags (not Drag()s). Other attributes (like dragged, draggable, etc.) should probably be given in the Drag() definition and not added to the screen directly. screen drag...
- Sun Apr 28, 2024 11:00 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] get click position on the button?
- Replies: 5
- Views: 220
Re: get click position on the button?
Wouldn't renpy.focus_coordinates (https://www.renpy.org/doc/html/other.ht ... oordinates ) be enough to get the info you need?
- Thu Apr 25, 2024 1:34 am
- Forum: Ren'Py Questions and Announcements
- Topic: Should I be using imagemaps or imagebutton for an interactive flowchart (zooming, mouse navigation, etc)
- Replies: 4
- Views: 400
Re: Should I be using imagemaps or imagebutton for an interactive flowchart (zooming, mouse navigation, etc)
Note that I am not particularly offering advice on how to best approach this, because that's a complicated question that I am ill equipped to deal with without your assets or your design goals. Simply to answer your specific question: the way you do it now the hotspots would be in a different place,...