Search found 1882 matches

by Ocelot
Thu Sep 29, 2022 3:57 am
Forum: Ren'Py Questions and Announcements
Topic: Making something happen with bars
Replies: 1
Views: 245

Re: Making something happen with bars

You can use: a) changed property of bar itself: https://www.renpy.org/doc/html/screens.html#bar changed If given, this should be a Python function. The function is called with the value of the adjustment when the adjustment is changed. b) changed member of associated adjustment: https://www.renpy.or...
by Ocelot
Wed Sep 28, 2022 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Call / Call Screen error
Replies: 3
Views: 281

Re: Call / Call Screen error

Is this a complete error message? It looks like part of backtrace with actual error missing.
by Ocelot
Tue Sep 27, 2022 6:46 am
Forum: Ren'Py Questions and Announcements
Topic: just setting variable to True only affects - see code
Replies: 8
Views: 289

Re: just setting variable to True only affects - see code

In short, it is becaue you used define if you change it to defaukt there, issue should disappear. A longer explanation: when you create varaibles using define RenPy considers them unchangeable and does not check if they are changed if they are still in cache somewhere. So changes are not always visi...
by Ocelot
Tue Sep 27, 2022 3:49 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Possible To Directly Link To An External URL From The Player Choice Menu?
Replies: 3
Views: 238

Re: Possible To Directly Link To An External URL From The Player Choice Menu?

And to explain what you see: In the end "Text 1" is not a choice. Choices have a colon after them and a block below them. That was not a choice, but a menu heading. By default it is displayed by say screen. You can change configuration to display it as first insensetive choice instead if you want. I...
by Ocelot
Mon Sep 26, 2022 9:50 am
Forum: Ren'Py Questions and Announcements
Topic: My project doesn't start anymore
Replies: 6
Views: 308

Re: My project doesn't start anymore

What is the date of creation of error.txt? Is it old (like previous working version was) or is it new, like the time you tried to launch the game last time?
by Ocelot
Sun Sep 25, 2022 6:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Centering text inside a frame [solved]
Replies: 2
Views: 222

Re: Centering text inside a frame

Set frame size explicitely. By default frame will be just as large as largest child, in your case it would be as large, as contained text. Text is not moved, because there is no place for it to move.
by Ocelot
Sun Sep 25, 2022 3:11 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I use "if" to make the quick menu TRUE and FALSE?
Replies: 1
Views: 234

Re: How can I use "if" to make the quick menu TRUE and FALSE?

The most optimal way would be to modify quick_menu screen to not display itself while in replay:
if quick_menu:if quick_menu and not _in_replay:
by Ocelot
Sun Sep 25, 2022 2:36 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Why can't I change a variable in a list?
Replies: 4
Views: 284

Re: Why can't I change a variable in a list?

This is to be expected: there is no variable nums[0] . There is variable nums which can be indexed to acccess another object, but does not make nums[0] a valid variable name. Even in Python anything accessing variables by name will break on trying to access object at list index. Just use Function wi...
by Ocelot
Sat Sep 24, 2022 1:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Python & Renpy = PHP & CSS ?
Replies: 2
Views: 247

Re: Python & Renpy = PHP & CSS ?

1) you can call specific labels for specific scenes and even pass argument to them 2) you can define sequences of animation controlled by arguments. 3) You can define screens with animations and arguments something like: label scary_scene(times=5): scene show eye_blink show black with dissolve while...
by Ocelot
Fri Sep 23, 2022 4:53 pm
Forum: Ren'Py Questions and Announcements
Topic: TypeError: can only concatenate str (not "bool") to str
Replies: 7
Views: 296

Re: TypeError: can only concatenate str (not "bool") to str

Slightly changed code: @property def Output(self): potato = "Var1Att" if self.var1 else "unknown" butterflies = "Var2Att" if self.var2 else "unknown" return "var1: %s{p}var2: %s" % (potato, butterflies) Does that makes it more clear? var1 and var2 in that function wele local variables of the Output ...
by Ocelot
Thu Sep 22, 2022 5:22 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Alternative dialogue when a CG appears.
Replies: 4
Views: 399

Re: Alternative dialogue when a CG appears.

Make an alterantive say screen (with quock menu moved, background and side images removed) for use with CG and use say with arguments to select it during CG: ano "of course. Make yourself comfortable." # . . . show cg of_some_kind higa Let me help you with the cooking!" (screen="your_new_screen") ht...
by Ocelot
Tue Sep 20, 2022 7:07 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Rotated text keeps moving!
Replies: 2
Views: 277

Re: Rotated text keeps moving!

I do not see the problem. The text is rotated around anchor point. I checked and it seems to be in the same position in both screenshots.

Image
by Ocelot
Tue Sep 20, 2022 3:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Trouble getting renpy games to run
Replies: 3
Views: 343

Re: Trouble getting renpy games to run

Did you install graphic card drivers?