Search found 2405 matches

by Ocelot
Mon Mar 28, 2022 4:24 am
Forum: Ren'Py Questions and Announcements
Topic: Centered Main Menu text but not Navigation?
Replies: 2
Views: 334

Re: Centered Main Menu text but not Navigation?

Generally, if your game menu and main menu diffr so much that there is only two common buttons, it is better to not use navigation screen for main menu at all. Just place button directly there and remove everything related to main menu from navigation screen.
by Ocelot
Mon Mar 28, 2022 3:26 am
Forum: Ren'Py Questions and Announcements
Topic: End game from within called subroutine [SOLVED]
Replies: 2
Views: 337

Re: End game from within called subroutine

In most programming languages you will return a value from your subroutine, which will tell, where to jump. Something like: label shared_branch: menu: "This choice doesn't end the game.": return "This choice doesn't end the game, either.": return "This choice should end the ...
by Ocelot
Sun Mar 27, 2022 3:21 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Don't show Chinese phrases (square sign instead) in Spanish project
Replies: 4
Views: 375

Re: Don't show Chinese phrases (square sign instead) in Spanish project

And those are used for Spanish and Chinese text respectfully?

Check, using style inspector (Shift+I while hovering over text) if those fonts are really used for broken text, and nothing overwrite it.
by Ocelot
Sun Mar 27, 2022 7:02 am
Forum: Ren'Py Questions and Announcements
Topic: Hosting a Game file to DL for everyone
Replies: 2
Views: 389

Re: Hosting a Game file to DL for everyone

I am going to compile it in a .exe to publish it but I would like to have your opinion on the way I should make it available to download. Compiling it to .exe will make it unavaliable ti Linux and MacOs users. Just a heads-up. The easiest way is to upload it on my google drive, but I'm kind of relu...
by Ocelot
Sun Mar 27, 2022 2:11 am
Forum: Ren'Py Questions and Announcements
Topic: Changing How Ren'Py Parses "show"
Replies: 2
Views: 327

Re: Changing How Ren'Py Parses "show"

1) Yes and No. A lot of RenPy is defined to work from outside of its enviroment (for example, all code designed to set up that enviroment). I have no Idea if default parser could be messed with reliably from within RenPy. 2) When generating rpyc files from rpy 3) Not exactly. You will need to extens...
by Ocelot
Sat Mar 26, 2022 2:38 am
Forum: Ren'Py Questions and Announcements
Topic: Displaying text lines in a screen one at a time
Replies: 4
Views: 409

Re: Displaying text lines in a screen one at a time

define words = """According to all known laws of aviation, there is no way a bee should be able to fly.{p=3} Its wings are too small to get its fat little body off the ground.{p=3} The bee, of course, flies anyway because bees don't care what humans think is impossible.""&q...
by Ocelot
Fri Mar 25, 2022 3:54 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to create a counter that will add +1 every time dialogue is spoken?
Replies: 2
Views: 396

Re: Is it possible to create a counter that will add +1 every time dialogue is spoken?

You can use character callbacks for that: default dialogue_count = 0 init python: def increment_dialogue_count(event, interact=True, **kwargs): if not interact: return if event == "begin": store.dialogue_count += 1 config.all_character_callbacks.append(increment_dialogue_count)
by Ocelot
Fri Mar 25, 2022 2:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Get error upon launching project
Replies: 4
Views: 286

Re: Get error upon launching project

gui.variant decorator became avaliable in RenPy 7.4.11
by Ocelot
Fri Mar 25, 2022 1:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Get error upon launching project
Replies: 4
Views: 286

Re: Get error upon launching project

What is the version of RenPy you are trying to run?
by Ocelot
Fri Mar 25, 2022 2:50 am
Forum: Ren'Py Questions and Announcements
Topic: Gallery questions
Replies: 11
Views: 817

Re: Gallery questions

make_button applies style properties to button object itself. You need to scale image instead and provide gallery with already scaled image: image ending_1 = "endings/1.png" image ending_1_small: "ending_1" xysize (50, 50) fit "scale-down" g.make_button("end1"...
by Ocelot
Thu Mar 24, 2022 7:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Gallery questions
Replies: 11
Views: 817

Re: Gallery questions

You almost got it right. condition expects a single string containing a Python expression . You need to write condition and then wrap it in quotes. Also I want to point to unlock and unlock_image functions. unlock works like condition where condition is "image with that name was seen at least o...
by Ocelot
Thu Mar 24, 2022 5:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Gallery questions
Replies: 11
Views: 817

Re: Gallery questions

There was also a "slowpan" in the code which does not work because it says it is not defined. This is an example code which shows how to apply transforms to images. You might also notice that it doesn't work, because images like "bigbeach1" are not defined either. One thing abou...
by Ocelot
Thu Mar 24, 2022 3:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Reroute to another Screen (not the Confirm Screen) when pressing X for Quit
Replies: 4
Views: 750

Re: Reroute to another Screen (not the Confirm Screen) when pressing X for Quit

It should be a screen action, not a game script.

Either one of those: https://www.renpy.org/doc/html/screen_actions.html
Or you can make one yourself: https://www.renpy.org/doc/html/screen_p ... ml#actions
Technically, ShowMenu action should suit you.
by Ocelot
Thu Mar 24, 2022 1:08 pm
Forum: Ren'Py Questions and Announcements
Topic: Good practice for creating and using data objects in lists
Replies: 4
Views: 542

Re: Good practice for creating and using data objects in lists

You got lucky there.
Saving does not guarantee to keep aliased names. I suggest to not rely on this at all, because you cannot predict after which edit something will break.