Search found 888 matches

by jeffster
Mon Oct 14, 2024 2:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Calling a label and returning the return value in Python
Replies: 10
Views: 1243

Re: Calling a label and returning the return value in Python

$ renpy.return_statement(something) is almost complete equivalent to return something except: a) Python statement are not predicted at all. b) IIRC lint warns you if you call label lacking a return statement. Lint also does not consider Python code, so you stuck with the warning. c) Lint cannot che...
by jeffster
Mon Oct 14, 2024 8:52 am
Forum: Ren'Py Questions and Announcements
Topic: Calling a label and returning the return value in Python
Replies: 10
Views: 1243

Re: Calling a label and returning the return value in Python

This is just the worse, non-predictable non-lintable return statement. Unless you are for some reason trapped in Python code, this should not be used. It is mainly a building block for your own CDS I don't understand. What does lint have to do with that? It returns some value, that's it. And why is...
by jeffster
Mon Oct 14, 2024 8:41 am
Forum: Ren'Py Questions and Announcements
Topic: Click and move a custom displayable in screen language?
Replies: 11
Views: 902

Re: Click and move a custom displayable in screen language?

p.s. JEFSTER can you tell me how restart atl without hide screen show screen,i tryed things but not worked and m_from_space doesnot like screen hide/show :D renpy.restart_interaction() might work. If not, then hiding and showing the object of ATL transform might be the way. For example, if it's a s...
by jeffster
Sun Oct 13, 2024 10:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Calling a label and returning the return value in Python
Replies: 10
Views: 1243

Re: Calling a label and returning the return value in Python

I can get hold of the return value from calling a Renpy label function, using the special _return variable. But I've been trying to do the same thing from Python code, and failing. Searching the official Ren'Py documentation reveals renpy.return_statement(value=None) : https://renpy.org/doc/html/st...
by jeffster
Sun Oct 13, 2024 6:49 am
Forum: Ren'Py Questions and Announcements
Topic: Click and move a custom displayable in screen language?
Replies: 11
Views: 902

Re: Click and move a custom displayable in screen language?

Would you mind to read my "Tutorial on procedural animation"? https://lemmasoft.renai.us/forums/viewtopic.php?t=68969 (You are welcome to give feedback BTW). Its part IV is pretty much answering your question, or at least it could be a good starting point. (Moving along a straight line, yo...
by jeffster
Sat Oct 12, 2024 8:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Customizing the confirm transitions
Replies: 3
Views: 401

Re: Customizing the confirm transitions

I'm actually planning to use custom-made transitions I did, not transform. I don't know how to do that. Except maybe find the codes where Save/Load/Delete/Quit are called, and add there transitions explicitly, probably using renpy.with_statement() or maybe renpy.transition() For quitting by the win...
by jeffster
Sat Oct 12, 2024 1:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Customizing the confirm transitions
Replies: 3
Views: 401

Re: Customizing the confirm transitions

if it's actually possible to change config.enter_yesno_transition and config.exit_yesno_transition for each message? Directly, no. "config." variables cannot be changed after the init phase. What you can do is to show the screen or its elements with different transforms, like if message =...
by jeffster
Sat Oct 12, 2024 12:58 pm
Forum: Ren'Py Questions and Announcements
Topic: New "Say" window not fading in with character's custom window_background
Replies: 3
Views: 397

Re: New "Say" window not fading in with character's custom window_background

AFAIU you want "say" (or the textbox) to have some transition or transform between different characters, but not between lines of one character. There is a rather simple way to do almost the same thing (and it looks good enough IMO): * Let the "say" end without transition. * Next...
by jeffster
Fri Oct 11, 2024 6:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Function triggered via hyperlink_handlers behaves differently than via Function action
Replies: 2
Views: 400

Re: Function triggered via hyperlink_handlers behaves differently than via Function action

However, the glossary screen doesn't appear- it seems like the renpy.show_screen and renpy.hide_screen calls are being ignored. The description of define config.hyperlink_handlers = { ... } says: A dictionary mapping a hyperlink protocol to the handler for that protocol. A handler is a function tha...
by jeffster
Fri Oct 11, 2024 4:12 pm
Forum: Ren'Py Questions and Announcements
Topic: New "Say" window not fading in with character's custom window_background
Replies: 3
Views: 397

Re: New "Say" window not fading in with character's custom window_background

The problem is that whenever it changes, there's a dissolve transition that shows the default textbox instead of the one I want--before snapping back to the correct one once the transition's finished. In short, I want the say screen's dissolve transition to show whatever character background its su...
by jeffster
Fri Oct 11, 2024 12:24 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Change mouse cursor on click
Replies: 3
Views: 402

Re: Change mouse cursor on click

I tried to implement the code with the help of ChatGPT. I tried various approaches. But so far I haven't been able to produce any results. Hi. Using imitations of brains is a bad idea, because they don't actually have brains. To create in Ren'Py, use its official documentation. It won't write code ...
by jeffster
Thu Oct 10, 2024 10:57 am
Forum: Ren'Py Cookbook
Topic: Tutorial on procedural animation
Replies: 4
Views: 841

Re: Tutorial on procedural animation

OK, how about we apply our newfound mastery in procedural animation to a real life task? Tutorial on procedural animation. Part IV: Tracking mouse, saving data, moving objects Let's imagine that we are developing a game with maps and sailing, and we need to quickly depict a journey from Palopo to Ba...
by jeffster
Wed Oct 09, 2024 11:25 am
Forum: Ren'Py Cookbook
Topic: Tutorial on procedural animation
Replies: 4
Views: 841

Re: Tutorial on procedural animation

Drawing a line (or even a complex path) as animation might seem like not much. But some of the greatest games of our time have used that technique both for decorative purposes (like NOLF 2 ) and as a part of gameplay. Now let's explore a few ways how an animated line can become more exciting. Tutori...
by jeffster
Wed Oct 09, 2024 10:53 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] CDD inside a viewport insights shenanigan
Replies: 3
Views: 410

Re: CDD inside a viewport insights shenanigan

CDDs, Apparently they don't move themselves with rv.blit(child_render, (self.x, self.y)) their child moves and the object itself is stuck to the top left corner. When the viewport is dragged and the top left corner goes out of screen, the CDDs are no longer rendered. I understand CDD as a rectangle...
by jeffster
Wed Oct 09, 2024 10:39 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Good way to make randomized "background" text?
Replies: 10
Views: 752

Re: Good way to make randomized "background" text?

Although the text itself no longer changes on player click, the dissolve transition is still skipped by it. I thought about using a transform instead, but I don't know how to make it both unskippable and synced up with the thought's timed fade in and out. My searching led me to the "_dismiss_p...