Search found 264 matches

by RicharDann
Fri Feb 26, 2021 10:45 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] using a function inside a label
Replies: 2
Views: 79

Re: using a function inside a label

You should define the function in an init python block, outside of a label.

Code: Select all

init python:
    def hidescreens():
        #(...)
The python block (without the init) is used to run python code from inside a label, but I'm not sure it allows for function definition.
by RicharDann
Tue Feb 23, 2021 11:16 am
Forum: Ren'Py Questions and Announcements
Topic: Any list of up to date Ren'py frameworks & code snippets, so we don't have to reinvent the wheel constantly?
Replies: 4
Views: 235

Re: Any list of up to date Ren'py frameworks & code snippets, so we don't have to reinvent the wheel constantly?

There are no up-to-date and beginner-friendly navigation systems that I know of, the newest one dates to something like 2015-2017, but I think it might still work. I'm currently working on my own, I might release to the cookbook if I determine it is useful, but these are more complicated than it see...
by RicharDann
Fri Feb 19, 2021 12:54 pm
Forum: Creator Discussion
Topic: Directing Scenes With Too Many (or Too Few) Characters
Replies: 4
Views: 585

Re: Directing Scenes With Too Many (or Too Few) Characters

I don't think having characters speaking off-screen is a bad thing. I agree that player's focus is more likely to be on the dialogue that in the camera and sprites. That's not to say you shouldn't care about the sprites and the camera, as it can be a nice touch to animate it as long as its consistan...
by RicharDann
Fri Feb 19, 2021 12:01 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Get syntax error. Why?
Replies: 3
Views: 122

Re: Get syntax error. Why?

You're trying to run a say statement from an init python block. You need to use renpy.say(), the statement equivalent function instead for it to work in python.
Instead of:

Code: Select all

cr 'wallet_size error!'
Use:

Code: Select all

renpy.say(cr, "wallet_size error!")
by RicharDann
Tue Feb 16, 2021 3:05 pm
Forum: Ren'Py Questions and Announcements
Topic: What is an "interaction"?
Replies: 13
Views: 254

Re: What is an "interaction"?

DISCLAIMER: I'm not 100% sure about this, as I haven't been able to find relevant documentation. I edited my first post a bit to clarify the wording, but in this case, a context is sort of like a mode, a particular state the program enters depending if you're calling a screen, invoking a pause or st...
by RicharDann
Tue Feb 16, 2021 2:02 pm
Forum: Ren'Py Questions and Announcements
Topic: What is an "interaction"?
Replies: 13
Views: 254

Re: What is an "interaction"?

I don't know the exact internal specifics for this, but as far as I understand it (hope I'm not wrong), an interaction occurs any time Ren'Py is waiting for input from the player. Clicking on a Menu button, advancing the dialogue text by clicking or pressing enter, anytime the player has to "interac...
by RicharDann
Tue Feb 09, 2021 9:34 am
Forum: Ren'Py Questions and Announcements
Topic: Call Screen with hyperlink instead of show
Replies: 2
Views: 227

Re: Call Screen with hyperlink instead of show

Is there a way to force the hyperlink to call the screen instead of show? If not, any other suggestions as to how to get the quick_menu to hide with a hyperlink? Try using showmenu instead of show for the hyperlink argument. "I have {a=showmenu:info}info{/a} for you." If it doesn't work, for hiding...
by RicharDann
Mon Feb 08, 2021 3:47 pm
Forum: Works in Progress
Topic: [EPISODE 2 RELEASE] Guilty Parade [Point & Click][Detective | War | Mystery]
Replies: 53
Views: 7551

Re: [EPISODE 2 RELEASE] Guilty Parade [Point & Click][Detective | War | Mystery]

This is an amazing game! Beautiful art, an intriguing and enganging story, unique characters, and great music. The first is episode one of the best demo episodes I've ever had the pleasure to play, really well written and structured. Great job so far, I'm really looking forward to future episodes!
by RicharDann
Mon Feb 08, 2021 3:14 pm
Forum: Creator Discussion
Topic: Interesting Game Mechanics?
Replies: 1
Views: 539

Re: Interesting Game Mechanics?

I'm not sure if this is considered a game mechanic, but I like games that are divided in time periods and give the player specific goals to complete during each period that become progresively more difficult as the game advances. Not sure if this is what you're going for, but for stat building or ma...
by RicharDann
Mon Jan 18, 2021 10:32 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]if getattr(style, name).xpos == None: prevents from style property assignment
Replies: 8
Views: 441

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: [Solved]if getattr(style, name).xpos == None: prevents from style property assignment
Replies: 8
Views: 441

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: [Solved]if getattr(style, name).xpos == None: prevents from style property assignment
Replies: 8
Views: 441

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: 297

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: 279

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: 285

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...