Search found 2400 matches

by Ocelot
Mon Oct 25, 2021 5:57 am
Forum: Ren'Py Questions and Announcements
Topic: How to adjust scrollbar size?
Replies: 9
Views: 569

Re: How to adjust scrollbar size?

Check in console what is the value of gui.scrollbar_size actually is. If it is 25, then something must have overwritten original assignment. If it is 60, as expected, rebuild styles in game. If it fixes scrollbar size, the you have weird problem with order of initialization. If it didn't, then somet...
by Ocelot
Sun Oct 24, 2021 5:41 pm
Forum: Ren'Py Questions and Announcements
Topic: How to adjust scrollbar size?
Replies: 9
Views: 569

Re: How to adjust scrollbar size?

If it does not, check scrollbars in your project with style inspector to see, where they get their style properties from.
by Ocelot
Sun Oct 24, 2021 3:52 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Issues with Styling Say screen
Replies: 5
Views: 586

Re: Issues with Styling Say screen

Remove two kinds of say screen completely, the whole point of using preferences was to avoid that. screen say(who, what): style_prefix "say" window: id "window" if who is not None: window: id "namebox" style "namebox" text who id "who" text what id &...
by Ocelot
Sat Oct 23, 2021 5:33 pm
Forum: Ren'Py Questions and Announcements
Topic: How to apply Transform to displayables on screen?
Replies: 1
Views: 379

Re: How to apply Transform to displayables on screen?

Add image at transform controlled by variables. Then just change variables, when needed.
Example:
viewtopic.php?f=8&t=63377
by Ocelot
Sat Oct 23, 2021 3:44 pm
Forum: Ren'Py Questions and Announcements
Topic: How to display certain images on a conditional?
Replies: 5
Views: 505

Re: How to display certain images on a conditional?

I was about to ask a similar question, but my question is about alternate character images depending on choices made by the player. Basically, I have a character who is supposed to be wearing one of three outfits, depending on earlier player choices. Rather than doing something like this: transform...
by Ocelot
Sat Oct 23, 2021 7:19 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Issues with Styling Say screen
Replies: 5
Views: 586

Re: Issues with Styling Say screen

The style of text is controlled by what_style provided by character object. The default what_style is say_dialogue
Instead of doubling your screen size, have you considered simply changing styles for say screen? Style Preferences would work well for that.
by Ocelot
Fri Oct 22, 2021 12:03 pm
Forum: Ren'Py Questions and Announcements
Topic: How to display certain images on a conditional?
Replies: 5
Views: 505

Re: How to display certain images on a conditional?

Example of changing applied transform effects in-game: image steve = Placeholder("boy") transform do_nothing: pass transform ghost: alpha 0.5 default sprite_effects = do_nothing label start: show steve at center, sprite_effects '....' $ sprite_effects = ghost show steve at center, sprite_...
by Ocelot
Fri Oct 22, 2021 8:53 am
Forum: Ren'Py Questions and Announcements
Topic: Errors in code.
Replies: 1
Views: 321

Re: Errors in code.

It literally says it in the error message: code in the python block must be indented, so parser can understand what code is Python and what is RenPy DSL.
by Ocelot
Fri Oct 22, 2021 6:16 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] initial values for transform
Replies: 2
Views: 343

Re: initial values for transform

What I came to: default objects = [] init python: class Point: def __init__(self, x, y): self.x = x self.y = y self.initial_position = True def add_one(): objects.append(Point(renpy.random.randint(10, 1270), renpy.random.randint(10, 710))) def move_left(): for i in objects: i.x -= 100 i.initial_posi...
by Ocelot
Fri Oct 22, 2021 5:34 am
Forum: Ren'Py Questions and Announcements
Topic: menu choices not working??
Replies: 1
Views: 313

Re: menu choices not working??

Where is character "e" defined?
by Ocelot
Sun Oct 17, 2021 10:38 am
Forum: Ren'Py Questions and Announcements
Topic: Does not accept attribute "1", should be a string " 1"
Replies: 6
Views: 742

Re: Does not accept attribute "1", should be a string " 1"

The clue lies in " ".join(self.args) which is the code that manages this "string".join("args") This is actually code for exception creation and ideally should not be included in call stack. Full code; raise Exception("Image '{}' does not accept attributes '{}'.&qu...
by Ocelot
Sat Oct 16, 2021 2:50 am
Forum: Ren'Py Questions and Announcements
Topic: Key identifier code for return key?
Replies: 1
Views: 324

Re: Key identifier code for return key?

You can simply print value of K_RETURN and see, what it is.

However, these values can change. They did change before, so be extra careful with these.
by Ocelot
Fri Oct 15, 2021 4:12 pm
Forum: Ren'Py Questions and Announcements
Topic: On Asking Questions
Replies: 10
Views: 144447

Re: On Asking Questions

Github issues page would be the best place for that:
https://github.com/renpy/renpy/issues

For bugs it is often better to post code causing issues on forum first for others to confirm bug, or tell if it is expected behavior.
by Ocelot
Mon Oct 11, 2021 5:37 am
Forum: Ren'Py Questions and Announcements
Topic: language Variable use
Replies: 3
Views: 397

Re: language Variable use

A better approach would be to use translation framework for that. $ abstractTxt = __("fear") In translation files: translate spanish strings: old "fear" new "miedo" https://www.renpy.org/doc/html/translation.html#__ That way new translations could be added without need ...
by Ocelot
Fri Oct 08, 2021 8:06 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to create interactive checkbox form?
Replies: 4
Views: 440

Re: How to create interactive checkbox form?

Create an imagebutton with normal idle image being unchecked, and selected being checked. Then use SetVariable as your action. For example, for first button you will use SetVariable("gender", 'm') , second — SetVariable("gender", 'f') , etc. If variable which is being set already...