Search found 414 matches
- Thu May 09, 2024 10:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
- Replies: 3
- Views: 91
Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
Adding modal doesn't help, as it's not the player progressing through, but Python progressing to the next line of the method. renpy.pause(hard=True) is already in use during all of this to keep the player from progressing the Renpy script. (I've tried modal True for both the screen and the timer, a...
- Thu May 09, 2024 10:22 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Map where you cannot go to the same place multiple times
- Replies: 8
- Views: 268
Re: Map where you cannot go to the same place multiple times
On script.rpy: label map: jump call_mapUI label house1_pressed: scene bg classroom "House 1 was pressed!" jump call_mapUI label house2_pressed: "House 2 was pressed!" jump call_mapUI ##below does not work, as it never exits the map loop label nextscene: scene black show mc idle ...
- Thu May 09, 2024 8:21 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Variable as a part of another variable's name?
- Replies: 6
- Views: 208
Re: Variable as a part of another variable's name?
You type
Code: Select all
long
- Thu May 09, 2024 8:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Screeen not Refreshing after Shift + R
- Replies: 1
- Views: 37
Re: Screeen not Refreshing after Shift + R
Note that with Shift-R you "turn ON" the mode that refreshes the data every time the source files change. Hence you press Shift-R only once, and the game will be reloaded automatically each time the code changes. (Until you press Shift-R again). It means if you press Shift-R twice, you tur...
- Thu May 09, 2024 8:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Annoying script error
- Replies: 4
- Views: 239
- Sun Apr 07, 2024 9:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Item slot placements in inventories
- Replies: 4
- Views: 241
Re: Item slot placements in inventories
I tried implementing it into my game but I got an error saying that "tooltip" is not a keyword argument or valid child of the add statement. There is official Ren'Py documentation here: https://renpy.org/doc/html/ Most problems can be solved by searching that site. About tooltip: my bad. ...
- Sun Apr 07, 2024 4:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Item slot placements in inventories
- Replies: 4
- Views: 241
Re: Item slot placements in inventories
For every slot of the inventory, certain information should be stored: * position (x, y) of the slot, * what item is there in the slot. For example: default inventory = [ {"pos": (100, 20), "item": None}, {"pos": (100, 120), "item": None}, {"pos": (1...
- Sun Apr 07, 2024 3:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Alternative display format
- Replies: 3
- Views: 222
Re: Alternative display format
The text box could be based on NVL-mode dialog: https://renpy.org/doc/html/gui.html#nvl but instead of a large vertical wall of text, it could be a lesser scrollable box, a "viewport" with scrollbar: https://renpy.org/doc/html/gui.html#scrollbars https://renpy.org/doc/html/screens.html#vie...
- Sun Apr 07, 2024 11:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: custom Displayable style_prefix
- Replies: 3
- Views: 161
Re: custom Displayable style_prefix
Is it possible to get the value from - style_prefix "navigation" ? I want to make a button like "textbutton" so that it pulls styles from the parent style_prefix. It works for standard displayables, like Button. It might be possible to employ the same mechanism here. What if we ...
- Sun Apr 07, 2024 8:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: custom Displayable style_prefix
- Replies: 3
- Views: 161
Re: custom Displayable style_prefix
How to make your own custom button "textbutton" so that style_prefix "navigation" styles are applied to it ? class SmoothHover(renpy.Displayable): def __init__(self, text, action, text_colors, outline_colors, **kwargs): in the screen navigation() block: I added a button but the ...
- Sun Apr 07, 2024 8:26 am
- Forum: Ren'Py Questions and Announcements
- Topic: [HELP] Screen menu issues
- Replies: 6
- Views: 276
Re: [HELP] Screen menu issues
I tryed, but problem still here. :< Other problems in the posted code are: (1) Wrong indentations. Each level of indentation should be 4 spaces. (2) Multiple "idle" and "hover" in the same imagemap. "idle" and "hover" are images (like backgrounds) for their i...
- Sat Apr 06, 2024 9:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Any way to access store variables from CDS function?
- Replies: 5
- Views: 196
Re: [HELP] Any way to access store variables from CDS function?
def execute_my_cds(parsed_object): getattr(store, "my_complex_system_object").do_some_complex_stuff(parsed_object) Still fails for the same reason that using "store.my_complex_system_object" fails: the CDS code runs when the "python early" block initializes it (though ...
- Sat Apr 06, 2024 8:23 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Any way to access store variables from CDS function?
- Replies: 5
- Views: 196
Re: [HELP] Any way to access store variables from CDS function?
Is there a way to access a variable that has been initialized with "default" or "define" inside a CDS (which itself required "python early")? Instead of addressing store variables by name, we can use functions like setattr(store, "my_complex_system_object", v...
- Sat Apr 06, 2024 3:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [HELP] Screen menu issues
- Replies: 6
- Views: 276
Re: [HELP] Screen menu issues
Greetings! Have a problem here. So I wanted to make point 'n' click feature, and subsequent confirm choice. But surfaced that, for some reason, after confirm to interact with pufflet, code wont contunie. It just stops on choice button aftertext. It only work after Shift+R. What might be a reason of...
- Fri Apr 05, 2024 8:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to implement a smooth style change ?
- Replies: 1
- Views: 126
Re: How to implement a smooth style change ?
If you prefer creator defined displayables to ATL transforms, there are interesting examples like BGQueue and SmoothHover:
viewtopic.php?t=63219
viewtopic.php?t=63219