Search found 2404 matches
- Tue Oct 26, 2021 4:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: Change default position/settings of sprites? [SOLVED]
- Replies: 3
- Views: 451
Re: Change default position/settings of sprites?
> Trying to show sprites "at right" and "at left", for instance, still have them aligned against the bottom because left is defined as align (0.0, 1.0) and right as align (1.0, 1.0) . Strictly speaking, they should be called bottomleft and bottomright . Same thing with center .
- Tue Oct 26, 2021 4:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: Toggle changes of scene automatically (ConditionSwitch, Persistent Data)
- Replies: 3
- Views: 584
Re: Toggle changes of scene automatically (ConditionSwitch, Persistent Data)
imagebutton: ... action (SetField(persistent, "h_content", 0), SetVariable("h_content", persistent.h_content), Function(renpy.restart_interaction)) That SetVariable should read SetVariable("h_content", 0) , because otherwise it will set h_content to the value persisten...
- Mon Oct 25, 2021 2:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Assign Image Alpha value from variable
- Replies: 2
- Views: 383
Re: Assign Image Alpha value from variable
Try pers1Vida/100.0 and see if it works.
- Mon Oct 25, 2021 10:58 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to adjust scrollbar size?
- Replies: 9
- Views: 577
Re: How to adjust scrollbar size?
You probably did this already, but: did you rename any rpy files recently or at tall? Did you try deleting all rpyc files to make sure there isn't any old data remaining? I had problem once when no changes to certain rpy file were registered. Turns out, corresponding rpyc file creation date was set ...
- Mon Oct 25, 2021 5:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to adjust scrollbar size?
- Replies: 9
- Views: 577
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...
- Sun Oct 24, 2021 5:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to adjust scrollbar size?
- Replies: 9
- Views: 577
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.
- Sun Oct 24, 2021 3:52 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Issues with Styling Say screen
- Replies: 5
- Views: 590
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 &...
- 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: 380
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
Example:
viewtopic.php?f=8&t=63377
- 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: 509
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...
- Sat Oct 23, 2021 7:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Issues with Styling Say screen
- Replies: 5
- Views: 590
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.
Instead of doubling your screen size, have you considered simply changing styles for say screen? Style Preferences would work well for that.
- 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: 509
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_...
- 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.
- Fri Oct 22, 2021 6:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] initial values for transform
- Replies: 2
- Views: 345
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...
- Fri Oct 22, 2021 5:34 am
- Forum: Ren'Py Questions and Announcements
- Topic: menu choices not working??
- Replies: 1
- Views: 316
Re: menu choices not working??
Where is character "e" defined?
- 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: 748
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...