Search found 1628 matches

by Remix
Sat Sep 10, 2022 10:00 am
Forum: Ren'Py Questions and Announcements
Topic: This in renpy possible?
Replies: 17
Views: 2356

Re: This in renpy possible?

Nicely done :) and thanks for letting us know
by Remix
Fri Aug 05, 2022 9:37 am
Forum: Ren'Py Questions and Announcements
Topic: How to make a character zoom in a bit when talking, just like in DDLC
Replies: 4
Views: 644

Re: How to make a character zoom in a bit when talking, just like in DDLC

A simpler, though less versatile, way might be to pass the relevant image tag into an ATL and then use that within a transform function that grows/shrinks based on speaking character... init python: def pop_character(trans, st, at, tag=None): ## Check get_say_image_tag() and adjust up if tag matches...
by Remix
Fri Jul 15, 2022 12:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adding tint to the image based on the variable
Replies: 4
Views: 467

Re: Adding tint to the image based on the variable

I cannot think of any reason not to use an approach like this.
by Remix
Thu Jul 14, 2022 7:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adding tint to the image based on the variable
Replies: 4
Views: 467

Re: Adding tint to the image based on the variable

You could use a displayable prefix to push the image through a function... Example using substituted global tint variable init -10 python: def tint_layer(s): split_parts = renpy.substitute(s).rsplit(" ",1) tint = "#FFF" if len(split_parts) == 1 else split_parts[1] try: tint = Col...
by Remix
Wed Jul 13, 2022 3:28 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Is it allowed to use 2 different languages ​​in a variable name?
Replies: 4
Views: 417

Re: Is it allowed to use 2 different languages ​​in a variable name?

Please be aware that Python, though it supports unicode attribute and method names, will internally normalize them when reading the class ... this basically means you would need to rewrite the dunder getattr and setattr type methods to also normalize (unicodedata.normalize( "NFKC", unicode...
by Remix
Sat May 14, 2022 5:13 am
Forum: Ren'Py Questions and Announcements
Topic: How to get an object's own position?
Replies: 9
Views: 876

Re: How to get an object's own position?

You might want to alter your logic and just try to read the active focus coordinates when needed: renpy.focus_coordinates() This attempts to find the coordinates of the currently-focused displayable. If it can, it will return them as a (x, y, w, h) tuple. If not, it will return a (None, None, None, ...
by Remix
Fri Apr 22, 2022 8:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Block building front-end language
Replies: 2
Views: 441

Re: Block building front-end language

If you can start on the path of writing one I'm sure many developers might try to help. Not an easy thing to do though. Ren'Py, through its DSL (Domain Specific Language) tries to make it easy to create a basic VN and, through offering that path, then hopes to open access to a community of like mind...
by Remix
Fri Apr 22, 2022 7:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Replace Strings in variables
Replies: 3
Views: 494

Re: Replace Strings in variables

You should be registering the strings for translation ... $ f += _("the {i}bee{/i}\n") (the _() registers it) If the translation still does not occur, either use the !t modifier in interpolation ( "[var!t]" ) or renpy.substitute() as s string wrapper ( e( renpy.substitute( _(&quo...
by Remix
Wed Mar 30, 2022 3:44 pm
Forum: Ren'Py Questions and Announcements
Topic: When multiple windows contain text beginning with the same word, only the last window is displayed
Replies: 1
Views: 349

Re: When multiple windows contain text beginning with the same word, only the last window is displayed

renpy.show(txt.replace(" ", "_"), what=bubble_move(txt, ypos, delay=bubble_delay,style_name=style_name)) *should* fix your issue (as, yes it is using the text string as a widget tag identifier) Also maybe check https://github.com/RenpyRemix/multi-notify and the Multi Notify Over...
by Remix
Sat Mar 19, 2022 8:16 am
Forum: Ren'Py Questions and Announcements
Topic: Renpy Speech Bubble Namebox
Replies: 2
Views: 734

Re: Renpy Speech Bubble Namebox

You *almost* have it, just your who part wants to go together with the what part (so both are transcluded inside the bubble... Something like: screen bubble_say(who, what, **kwargs): # This is the main container screen # It uses child screens to display each bubble, one for # each dialogue that is s...
by Remix
Tue Dec 21, 2021 7:52 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make an imagebutton with focus mask but for transparent buttons?
Replies: 2
Views: 415

Re: How to make an imagebutton with focus mask but for transparent buttons?

Your problem is the action Null and the =

Code: Select all


	imagebutton:
                focus_mask True 
                action NullAction()
		hover "apple_hover.png" 
		idle  "apple_idle.png"
by Remix
Tue Dec 21, 2021 7:12 am
Forum: Ren'Py Questions and Announcements
Topic: Issue with using call labels
Replies: 3
Views: 575

Re: Issue with using call labels

If you are using tags for your image names and your Character definitions specify their image="their tag" property, you could automate the lot... init python: def pop_character(trans, st, at, tag=None): ## Check get_say_image_tag() and adjust up if tag matches else down adjust = 0.005 if t...
by Remix
Wed Dec 15, 2021 3:15 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Issue with "renpy.focus_coordinates()"
Replies: 4
Views: 538

Re: [Solved]Issue with "renpy.focus_coordinates()"

Because you are using a screen variable (rather than global) we need to target the screen itself... so renpy.current_screen().scope["screen variable name"] is what we use there. We use renpy.restart_interaction() at the end to effectively just redraw the screen, so the text "Coordinat...
by Remix
Wed Dec 15, 2021 2:21 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Issue with "renpy.focus_coordinates()"
Replies: 4
Views: 538

Re: Issue with "renpy.focus_coordinates()"

The value of a screen action is evaluated when the screen is shown (not when the click occurs) You could maybe do it through a Function call... init python: def set_button_xpos(): cs = renpy.current_screen() if cs is None: return cs.scope["button_xpos"] = renpy.focus_coordinates()[0] renpy...