Search found 255 matches

by RicharDann
Mon Jan 18, 2021 10:32 am
Forum: Ren'Py Questions and Announcements
Topic: if getattr(style, name).xpos == None: prevents from style property assignment
Replies: 6
Views: 156

Re: if getattr(style, name).xpos == None: prevents from style property assignment

I wonder if the default statement can be considered as part of "style statement or init block"? We might have to ask PyTom or someome more knowledgeable on the way Style works internally, but in theory, since the __init__ method is run from an init python block (when the TestClass instance is creat...
by RicharDann
Sat Jan 16, 2021 9:24 am
Forum: Ren'Py Questions and Announcements
Topic: if getattr(style, name).xpos == None: prevents from style property assignment
Replies: 6
Views: 156

Re: if getattr(style, name).xpos == None: prevents from style property assignment

It seems you need to call style.rebuild() in order for changes to be applied after init. Check here.
EDIT:
Tough apparently the changes aren't saved after closing or reloading the game, as the warning I barely missed says.
by RicharDann
Fri Jan 15, 2021 3:41 pm
Forum: Ren'Py Questions and Announcements
Topic: if getattr(style, name).xpos == None: prevents from style property assignment
Replies: 6
Views: 156

Re: if getattr(style, name).xpos == None: prevents from style property assignment

I'm only guessing as I'm not able to test this right now, but you're using self.style_name for the if statement, and style_name in the second one. They might be being treated as different variables, one as a property of the object, the other as a local variable or perhaps an argument. Or perhaps thi...
by RicharDann
Fri Jan 15, 2021 12:57 pm
Forum: Ren'Py Questions and Announcements
Topic: AttributeError: 'tuple' object has no attribute
Replies: 9
Views: 145

Re: AttributeError: 'tuple' object has no attribute

Check this line:

Code: Select all

$ calendar = (3, 5, 6, 7)
Not sure what are you trying to do here, but it's overwriting the calendar variable, which contains a Calendar() object, with (3, 5, 6, 7), a tuple object.
by RicharDann
Tue Jan 12, 2021 4:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Character definitions not working
Replies: 2
Views: 151

Re: Character definitions not working

c tags are for single line code, if you want to show a code block you have to use code and /code tags. As for your question, the code you presented seems fine, but you perhaps have another variable somewhere with the same name, or accidentally overwrite it? That's the only reason I can think that e...
by RicharDann
Mon Jan 11, 2021 3:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Scrolling image - tearing my hair out!
Replies: 5
Views: 174

Re: Scrolling image - tearing my hair out!

As pointed out by _ticlock_ (Good catch!) you don't need to use zoom if your image is already larger than the screen, I only used it for testing since I didn't have a bigger image handy. The effect is achieved through the linear (or ease) statement, so that's the one you'll want to specially look in...
by RicharDann
Mon Jan 11, 2021 2:38 pm
Forum: Ren'Py Questions and Announcements
Topic: Scrolling image - tearing my hair out!
Replies: 5
Views: 174

Re: Scrolling image - tearing my hair out!

No need to use a viewport unless you need to manually scroll screen elements, if you just need to show an image that scrolls up slowly on its own you can achieve a similar effect with ATL (Animation and Transformation Language): transform character_intro(): zoom 2. xalign .5 yalign 0. linear 5 yalig...
by RicharDann
Fri Jan 08, 2021 1:40 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] $ quick_menu = False doesn't work within a screen
Replies: 3
Views: 170

Re: $ quick_menu = False doesn't work within a screen

Since quick_menu is a global variable already created in the default files, you're supposed to run that statement from a label in script, to change it's value. If you write that line on a screen, it doesn't modify the existing global variable, but instead creates a new screen variable, scoped locall...
by RicharDann
Thu Jan 07, 2021 2:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Using Array for Menu items?
Replies: 2
Views: 164

Re: Using Array for Menu items?

You should'nt define a screen inside a label, you need to define it outside of a block, and then call the screen from the label with a show screen or call screen statement. Also, in the screen, be sure to check indentation, in the while loop textbuttons should be indented below the statement or it w...
by RicharDann
Tue Jan 05, 2021 10:35 am
Forum: Ren'Py Questions and Announcements
Topic: ConditionSwitch image display [solved]
Replies: 2
Views: 226

Re: ConditionSwitch image display

You can provide it position properties by just using show statement: show Affection_Jenny: xpos .5 ypos 0 Or if you need to use renpy.show , provide an at_list parameter containing a Position() transform: $ renpy.show('Affection_Jenny', at_list=[Position(xpos=.5, ypos=0)]) As for your second questio...
by RicharDann
Wed Dec 30, 2020 10:57 am
Forum: Asset Creation: Writing
Topic: Creating Character Profiles - Suggestions and Discussion
Replies: 1
Views: 581

Re: Creating Character Profiles - Suggestions and Discussion

Gotta say this is a very well thought approach for a Character Profile Sheet! It covers the most important aspects of a character in my opinion, it's not unnecesarily long, and the explanations make total sense so I would say it's perfect. I myself use a very simplified version of this (using the Al...
by RicharDann
Wed Dec 30, 2020 10:19 am
Forum: Ren'Py Questions and Announcements
Topic: Screen that's modal or not based on its parameters
Replies: 4
Views: 273

Re: Screen that's modal or not based on its parameters

The method with default should_be_modal outside of the screen seems to work, but you can't use it as argument to the screen. default should_be_modal = True screen my_screen(): modal should_be_modal textbutton "Return" action [Hide('my_screen'), Return()] label start: show screen my_screen() "Right n...
by RicharDann
Wed Dec 23, 2020 4:57 pm
Forum: Asset Creation: Writing
Topic: Mystery getting stale or repetitive.
Replies: 5
Views: 515

Re: Mystery getting stale or repetitive.

I agree with the above advice. When I play a mystery game, as long as the investigation process is well designed, I'll be as interested in the gathering of clues and figuring out how a crime was committed as in who did it. The investigation part can be as fun that the actuall "Aha!" moment when I fi...
by RicharDann
Wed Dec 09, 2020 2:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Advice on Having Multiple NVL Mode Text Positions (solved)
Replies: 6
Views: 502

Re: Advice on Having Multiple NVL Mode Text Positions

You have a typo in your code. In the previous comment: define nvl_text_postion = 620 Should be: define nvl_text_position = 620 But if you want to move both the textbox and the nvl background, you would need to change the xpos of the window in nvl screen, the text inside should automatically adjust t...
by RicharDann
Tue Dec 01, 2020 12:44 pm
Forum: Ren'Py Cookbook
Topic: BEST of Cookbook (working)
Replies: 5
Views: 1215

Re: BEST of Cookbook (working)

FOR RENPY: 7.3 This is a good initiative. Sometimes it's hard to tell how something really works without a demo or pictures, or if it will work at all, specially for older recipes that might have become incompatible with new versions of Ren'Py. I was wary of the Dating Sim Engine, but as it turns o...