Search found 3094 matches

by Alex
Fri Jun 23, 2023 7:04 pm
Forum: Ren'Py Cookbook
Topic: Interaction Afterlife (restart interaction after it ended)
Replies: 7
Views: 1959

Re: Interaction Afterlife (restart interaction after it ended)

... Hm, in your sample player can click "Open Additional" while in 'called' label and click "Leave statement..." to get 'called' label once again, but return will work only once... I've changed my sample a bit - check if it suits for your needs (and works right with save/load/ro...
by Alex
Fri Jun 23, 2023 6:18 pm
Forum: Development of Ren'Py
Topic: strange behavior of a button in 8.1.0
Replies: 2
Views: 1042

Re: strange behavior of a button in 8.1.0

PyTom wrote: Fri Jun 23, 2023 5:45 pm It's a feature, as the properties are evaluated before the block would be.
Um, ok then, thank you...))
by Alex
Fri Jun 23, 2023 1:02 pm
Forum: Ren'Py Cookbook
Topic: Interaction Afterlife (restart interaction after it ended)
Replies: 7
Views: 1959

Re: Interaction Afterlife (restart interaction after it ended)

... Try to use Call action with 'from_current' property - https://www.renpy.org/doc/html/statement_equivalents.html#renpy.call screen test_scr(): vbox: align(0.05, 0.05) text "Title" textbutton "Some call..." action Call("called_lbl", from_current=True) label start: &q...
by Alex
Sun Jun 18, 2023 12:00 pm
Forum: Ren'Py Questions and Announcements
Topic: (Solved)Animated menu didn't work
Replies: 2
Views: 148

Re: Animated menu didn't work

cottonvalent wrote: Sun Jun 18, 2023 11:21 am ...
In your image definition replace all 'Pause' with 'pause'.
https://www.renpy.org/doc/html/atl.html ... -atl-block
by Alex
Fri Jun 16, 2023 6:21 pm
Forum: Development of Ren'Py
Topic: strange behavior of a button in 8.1.0
Replies: 2
Views: 1042

strange behavior of a button in 8.1.0

Hi, folks! Got a strange behavior of a button in 8.1.0 is it bug or feature? Tried to put an action, sensitive and background properties for a button under if/else condition, but got an error I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. F...
by Alex
Thu Jun 08, 2023 4:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Adjustable bar not updating in real-time.
Replies: 3
Views: 224

Re: Adjustable bar not updating in real-time.

Misamor98 wrote: Thu Jun 08, 2023 3:17 pm But now I can't help but wonder, what is the purpose of ui.adjustment then?
It's an internal thingy.
by Alex
Thu Jun 08, 2023 2:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Adjustable bar not updating in real-time.
Replies: 3
Views: 224

Re: Adjustable bar not updating in real-time.

... You need to use ScreenVariableValue or VariableValue for your bar. Try screen test_bar_scr(): default some_screen_var = 5.0 hbox: spacing 10 pos (0.3, 0.1) bar value ScreenVariableValue('some_screen_var', range=10.0) xysize(400, 50) text "{:0.1f}".format(some_screen_var) label start: ...
by Alex
Tue Jun 06, 2023 2:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Add new choice in menu by timer with animation (SOLVED))
Replies: 3
Views: 181

Re: Add new choice in menu by timer with animation

... Instead of timer add a transform to 6th choice in menu. Something like transform delayed_menu_choice(t=5.0): xoffset config.screen_width # to put this choice outside the screen t linear 0.5 xoffset 0 https://www.renpy.org/doc/html/atl.html Also, menu can get some arguments - https://www.renpy.o...
by Alex
Sun Jun 04, 2023 4:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Key press value
Replies: 3
Views: 189

Re: Key press value

... Kind of sample of such a game made of SL - try if it suits for you. # default values for game variables default secret_seq = [] # secret code list default game_seq = [] # pressed keys list default game_win = False # game flag init python: # function for key presses def game_secret_func(val): # ...
by Alex
Sun May 14, 2023 12:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Delay when text starts to write?
Replies: 5
Views: 264

Re: Delay when text starts to write?

Is there a way to delay when the text begins to write on the screen? With how it's set up, the text for the new screen immediately starts writing after you click next. However, I have some custom textbox transitions and I would like for the text to not start writing until the textbox has finished c...
by Alex
Wed May 10, 2023 1:16 pm
Forum: Ren'Py Questions and Announcements
Topic: How to get x and y size of displayed image - get_image_bounds not working?
Replies: 2
Views: 239

Re: How to get x and y size of displayed image - get_image_bounds not working?

Nokinori wrote: Wed May 10, 2023 11:05 am ...
Try this function to get size - viewtopic.php?f=8&t=7415#p556186

And in screen use it like

Code: Select all

key 'n' action Function(get_size, 'image_tag')
https://www.renpy.org/doc/html/screen_a ... l#Function
by Alex
Sat Apr 29, 2023 3:18 am
Forum: Ren'Py Questions and Announcements
Topic: Slow fade?
Replies: 1
Views: 582

Re: Slow fade?

Try to define your own fade transition like samples here - https://www.renpy.org/doc/html/transitions.html#Fade

And as far as I know you unable to make transition unskippable.
by Alex
Sat Apr 15, 2023 10:32 am
Forum: Ren'Py Questions and Announcements
Topic: Not sure what I'm doing wrong, but the error occurred once I tried to show a screen
Replies: 1
Views: 549

Re: Not sure what I'm doing wrong, but the error occurred once I tried to show a screen

Check if any of your variables, characters, functions has name from this list - https://www.renpy.org/doc/html/reserved.html
If that won't fix the issue, then provide the code for the screen and custom styles used in it.
by Alex
Thu Apr 13, 2023 1:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Jump to label from game_menu not working
Replies: 6
Views: 364

Re: Jump to label from game_menu not working

How does the cutscene code look like?
If it is a bunch of scene/show statements with some transitions, then try to make it using ATL transforms.