Search found 1882 matches
- Mon Oct 24, 2022 2:34 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Problems with displaying variable images
- Replies: 2
- Views: 109
Re: Problems with displaying variable images
First question, why list, dict, indexes, why not simply: default current_place = "" # No current place # Establishes relationship between place name and image. # Note that in your case right now you do not even need dictionary, as place name is the same as image name define places_bg = { "room_1": r...
- Mon Oct 24, 2022 12:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Moving an ImageButton to the foreground
- Replies: 2
- Views: 105
Re: Moving an ImageButton to the foreground
Yeah that works. Other way is to store all button data in a list and on hover bring button data to the front of the lis and redraw screen.
Also you could use 3D stage and literally move button closer to the camera.
Also you could use 3D stage and literally move button closer to the camera.
- Mon Oct 24, 2022 5:26 am
- Forum: Ren'Py Questions and Announcements
- Topic: Patching Game, New Variables, Save Compatibility.
- Replies: 2
- Views: 103
Re: Patching Game, including new Variables
Yes. they would. default will create variable if it does not exist when starting a new game or loading a saved game. This is exactly why they are suggested over simply initializing variables or creating them just after start.
- Sun Oct 23, 2022 5:43 am
- Forum: Ren'Py Questions and Announcements
- Topic: Making typing sounds compatible with automatic pauses
- Replies: 2
- Views: 118
Re: Making typing sounds compatible with automatic pauses
Why change of cps and not timed pause? I doubt you can call your callback just in the middle of the text without any pauses.
- Fri Oct 21, 2022 7:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]We can renpy.set_focus, but how do we renpy.clear_focus? Similar to moving the mouse a little.
- Replies: 2
- Views: 116
Re: We can renpy.set_focus, but how do we renpy.clear_focus? Similar to moving the mouse a little.
You can try
Note: not tested, might now work properly.
Code: Select all
renpy.display.focus.set_focused(None, None, None)
renpy.restart_interaction()- Fri Oct 21, 2022 5:43 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] how to make imagebuttons work?
- Replies: 2
- Views: 139
Re: how to make imagebuttons work?
1. In documentation for imagebutton ( https://www.renpy.org/doc/html/screens.html#imagebutton ) auto Used to automatically define the images used by this button. This should be a string that contains %s in it. If it is, and one of the image properties is omitted, %s is replaced with the name of that...
- Thu Oct 20, 2022 7:03 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Problems translating strings with variables
- Replies: 4
- Views: 160
Re: Problems translating strings with variables
Menu options are already marked by translation framework. And be careful with immediate translation function, it can break if you are changing languages in-game. Ideally you should only be using it in dynamically buildt strings (amount of which you should try to minimise in favor of interpolation an...
- Thu Oct 20, 2022 3:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED:Answer as PC only, not touch]If your PC has a touch screen, does Ren'py treat it as variant PC, Touch, or both?
- Replies: 1
- Views: 142
Re: If your PC has a touch screen, does Ren'py treat it as variant PC, Touch, or both?
If you check choose_variants function of main.py, you will see, that 'pc' is never set alongside 'touch' variant.
Generally 'touch' is set on devices where touchscreen ais main and highly likely only method of input.
Generally 'touch' is set on devices where touchscreen ais main and highly likely only method of input.
- Wed Oct 19, 2022 7:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Problems translating strings with variables
- Replies: 4
- Views: 160
Re: Problems translating strings with variables
In short, yes, you have to modify the game to make those string work with translation framework. Example 1 should look like that, for example: text __("Day: {}").format(day) text __("Playtime: {}H {}M {}S").format(hours, minutes, seconds) Examples 2 and 3 depends on how it works and what should and ...
- Wed Oct 19, 2022 6:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED: Intended Functionality]Potential Bug? Renpy 8.0.2 - Keysym doesn't work with gamepad, but Key does.
- Replies: 2
- Views: 120
Re: Potential Bug? Renpy 8.0.2 - Keysym doesn't work with gamepad, but Key does.
pad_b_press is not a keysym. It is a gamepad event. From https://www.renpy.org/doc/html/keymap.html: Gamepad bindings work a little differently . Gamepad bindings work by mapping a gamepad event to one or more Ren'Py event names. key works, because it is made to do so. https://www.renpy.org/doc/html...
- Tue Oct 18, 2022 6:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Slightly music phase change (DDLC-like).
- Replies: 1
- Views: 146
Re: Slightly music phase change (DDLC-like).
There are several ways. If you have several .ogg files of the same length and you want to transition from one to another, you can sync start position of second file on another channel with fadein and stop original file with fadeout. Another possibility is to get position of currently playing file an...
- Sun Oct 16, 2022 11:58 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Use a variable as a tag in show statement
- Replies: 4
- Views: 189
Re: [SOLVED]Use a variable as a tag in show statement
RenPy interpolation works only for RenPy statements. If you use Python (in Python block, Python one-liners or Python expressions) you need to perform Python formatting.
- Sun Oct 16, 2022 3:51 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Use a variable as a tag in show statement
- Replies: 4
- Views: 189
- Sun Oct 16, 2022 3:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: Translation problem with the imagebuttons.
- Replies: 2
- Views: 180
Re: Translation problem with the imagebuttons.
It seems that imagebutton code is not translation-friendly. Show code for imagenuttons and text that appears, and we will try to fix it.
- Fri Oct 14, 2022 6:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Please show me an example of 'input' to call inside the 'screen'
- Replies: 4
- Views: 212
Re: Please show me an example of 'input' to call inside the 'screen'
An example of barebones input screen: default character_name = "John Doe" screen name_input(): modal True frame: align (0.5, 0.5) padding (25, 25) input value VariableInputValue("character_name", returnable=True) screen some_screen(): textbutton "Change Name" action [SetVariable("character_name", ""...