Search found 1882 matches

by Ocelot
Tue Sep 20, 2022 1:08 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Is it possible to make the grid fill vertical?
Replies: 2
Views: 286

Re: Is it possible to make the grid fill vertical?

https://www.renpy.org/doc/html/screens.html#grid
transpose
If False (the default), rows are filled before columns. If True, then columns are filled before rows.
by Ocelot
Tue Sep 20, 2022 7:44 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Can I open one specific screen multiple at the same time?
Replies: 7
Views: 293

Re: Can I open one specific screen multiple at the same time?

Depending on how you will structure your screens, maybe yes, maybe screen actions will suffice, maybe a straightforwayd function call before reshowing window.
by Ocelot
Tue Sep 20, 2022 5:57 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Can I open one specific screen multiple at the same time?
Replies: 7
Views: 293

Re: Can I open one specific screen multiple at the same time?

If they are implemented as Drag Displayables, then coordinates are avaliable as x andy members of corresponding Drag pbject.

Another way to show screen multiple times is to use it multiple times in parent screen. Don't know, if it would be applicable to your project.
by Ocelot
Tue Sep 20, 2022 4:22 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Can I open one specific screen multiple at the same time?
Replies: 7
Views: 293

Re: Can I open one specific screen multiple at the same time?

1) Yes. renpy.show_screen( 'single_window', tag="some_other_name"). The only requirements are that tags should be unique and you need to keep track of tags used.

2) Yes. Probably works best if you simply reshow window with diffrent zorder.
by Ocelot
Mon Sep 19, 2022 8:42 am
Forum: Ren'Py Questions and Announcements
Topic: [solved ]How to add data to a screen from an internet source
Replies: 5
Views: 543

Re: [solved ]How to add data to a screen from an internet source

Some code will be nice. By default news screen is invoked by ShowNews action which does nessesary things, like passing actual news object to the screen. Does your screen has news parameter? Do you provide it when showing screen? Do you access news in some other way?
by Ocelot
Sat Sep 17, 2022 7:33 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]list indices must be integers not (CLASS NAME)
Replies: 2
Views: 278

Re: list indices must be integers not (CLASS NAME)

YOur main problem: you write the same code several times. By doing that you can accidently write them somewhat differently, which might lead to problems. If you have problems, see what is different btween those pieces of code. I just point one difference: $ enemies[pick]["crnt_hp"] -= LoadDam $ Floa...
by Ocelot
Sat Sep 17, 2022 4:15 pm
Forum: Ren'Py Questions and Announcements
Topic: How to reset input value
Replies: 3
Views: 290

Re: How to reset input value

You just need to overwrite value contained in it with osme other value. As you intend to store user input in it, the easies way is to overwrite it directly with input: [c$ noart = input(...[/c]. You might notice that it is exactly what you wrote in your code. Well, yes. There are no mysterious "prev...
by Ocelot
Sat Sep 17, 2022 3:52 pm
Forum: Ren'Py Questions and Announcements
Topic: An interesting bug where the title screen game gives the player all Steam achievements
Replies: 5
Views: 328

Re: An interesting bug where the title screen game gives the player all Steam achievements

Screen code an be run any time with any parameters during predictions. Code itself is always executed, this is why button actions and other similar things are stored in special classes. In your case RenPy decided to run your screen with achievement_01 set to True to check, if it would need to load a...
by Ocelot
Sat Sep 17, 2022 3:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Bar color?
Replies: 1
Views: 273

Re: Bar color?

Bar is an image. You change corresponding images or set bar to use other set of images.
More info in bar style properties: https://www.renpy.org/doc/html/style_pr ... properties

Most bar objects allow to set a range of values they operate on.
by Ocelot
Fri Sep 16, 2022 2:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Menu that depends on true/false variables [Solved]
Replies: 2
Views: 276

Re: Menu that depends on true/false variables

Yes: default hint_found = False label start: "hame start" menu: "Did you find the hint?" "Yes": $ hint_found = True "No": pass "some time later" menu: "Do you know what happened?" "Yes" if hint_found: "Good" "No": "Too bad." "The end." return
by Ocelot
Wed Sep 14, 2022 6:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Preventing additional points gained on rollback?
Replies: 5
Views: 338

Re: Preventing additional points gained on rollback?

retain_after_load has no effect on rollback to previous statement. It only affects changes between beginning and end of single statement.
by Ocelot
Sun Sep 11, 2022 2:56 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Reposition text box temporarily?
Replies: 6
Views: 290

Re: Reposition text box temporarily?

There are few ways. Depending on how often you want to do this, you might define a character: Styling Text and Windows. Keyword arguments beginning with who_, what_, and window_ have their prefix stripped, and are used to style the character name, the spoken text, and the window containing both, res...
by Ocelot
Sat Sep 10, 2022 4:02 am
Forum: Ren'Py Questions and Announcements
Topic: Loading Renpy 8 saves on Renpy 7.3
Replies: 2
Views: 350

Re: Loading Renpy 8 saves on Renpy 7.3

In theory, it could work. Saving and loading is just dumping/restoring state of stores with pickle . It is normally a single line. However, for that to workl normally, you will have either never save anything which changed behavior between Py2 and Py3. That means: no importing date / time, no saving...
by Ocelot
Fri Sep 09, 2022 7:40 am
Forum: Ren'Py Questions and Announcements
Topic: Adding a history/backlog jump button
Replies: 3
Views: 297

Re: Adding a history/backlog jump button

That is waht rollback is doing. Generally, without going through rollback: no. COnsider this line: $ stage = 5 . After this line value of variable stage will be 5. What should it be if we advance backward before this line? It is possible to know if you saved game state before this line (like rollbac...
by Ocelot
Fri Sep 09, 2022 5:19 am
Forum: Ren'Py Questions and Announcements
Topic: Adding a history/backlog jump button
Replies: 3
Views: 297

Re: Adding a history/backlog jump button

Rollback works by saving whole game state at certain moments and keeping it in memory. Consider it as having 100 temporary saves. As soon as you going over the limit, oldest states are dropped from memory. This is why it doesn't load another rollback lines, because corresponding state is gone, reduc...