Search found 421 matches
- Fri May 10, 2024 10:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How can I make a custom pixel dialogue box with drop shadow?
- Replies: 2
- Views: 192
Re: How can I make a custom pixel dialogue box with drop shadow?
Basically, how can I make this drop shadow effect and make the dialogue box resizeable? The default style for the dialogue box (textbox) is this I believe: style window: xalign 0.5 xfill True yalign gui.textbox_yalign ysize gui.textbox_height background Image("gui/textbox.png", xalign=0.5...
- Fri May 10, 2024 9:45 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Variable as a part of another variable's name?
- Replies: 9
- Views: 369
Re: Variable as a part of another variable's name?
How can I do the second thing? You type long in the console and press Enter. This doesn't work. You mean presing Shift+o to open the console and then type long there, right? Because it still looks the same. For me it works. I open the console, then type "long"<Enter>, then type "rp&q...
- Fri May 10, 2024 9:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]How can I reuse the screens?
- Replies: 5
- Views: 243
Re: How can I reuse the screens?
(...) # An "extreme" substitution is performed, in which the 30 variables obtain the values of ing_list[i][0] and ing_list [i][1]. # I made the transfer of values using the variable "ingridence". #At the beginning, each variable had its own screen, but I was able to reuse... 1 s...
- Fri May 10, 2024 3:50 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
- Replies: 7
- Views: 256
Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
if I'm using call screen, can I then still show screens on top of that? My navigation/point and click systems use a lot of different layered screens. Yes. Call one main screen, and there we can additionally both use screens (like Main Menu uses the navigation screen) and show screens. Also we can s...
- Fri May 10, 2024 10:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to load a PyGithub library into a game?
- Replies: 1
- Views: 134
Re: Is it possible to load a PyGithub library into a game?
As the documentation says, 1) install it to game/python-packages . 2) Try that import in .py file, not .rpy 3) Try to minimize conflicts, like import github.Auth and the like instead of importing all github If nothing works, then probably that package is not compatible with Ren'Py. You might try to ...
- Thu May 09, 2024 11:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
- Replies: 7
- Views: 256
Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
PPS. It's possible to show several messages at the same time, either as a flat list of messages, or as a queue where each message would appear and disappear by its individual timer (and perhaps each message should be either the 1st in the queue, or it should be shown at least 0.5 sec after the previ...
- Thu May 09, 2024 11:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
- Replies: 7
- Views: 256
Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
PS. Example: label start_battle: # Initialize the battle python: en = Enemy("elf") pl = Player() label battle_show_round: call screen battle(en) if not battle_finished: # conditions like (en.hp > 0 and pl.hp > 0 and nobody_flees) jump battle_show_round label do_whatever_after_battle: #... ...
- 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: 7
- Views: 256
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: 336
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: [SOLVED]Variable as a part of another variable's name?
- Replies: 9
- Views: 369
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: 2
- Views: 128
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: 289
- Sun Apr 07, 2024 9:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Item slot placements in inventories
- Replies: 4
- Views: 244
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: 244
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: 224
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...