Search found 154 matches

by strayerror
Thu Mar 07, 2019 1:40 am
Forum: Ren'Py Questions and Announcements
Topic: Conditions inside layered images [Solved]
Replies: 4
Views: 475

Re: Conditions inside layered images

You could potentially use DynamicImages to achieve this: layeredimage guy: [...] group shirt: attribute clean default: "clean_[guys_shirt].png" attribute dirty: "dirty_[guys_shirt].png" default guys_shirt = 'a' label start: show guy 'guy wearing clean shirt a' $ guys_shirt = 'b' 'guy wearing clean s...
by strayerror
Tue Mar 05, 2019 8:10 am
Forum: Ren'Py Questions and Announcements
Topic: Generate translation strings from data files?
Replies: 0
Views: 129

Generate translation strings from data files?

Hi there, I have a bunch of starters, main courses and deserts that wlll make up a restaurant menu. The data is stored in a JSON file and at game start is loaded, and (via a loop) turned into python instances of a Dish class. Since the _('literal string') function only captures literal strings when ...
by strayerror
Mon Mar 04, 2019 10:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to change xzoom/yzoom for different states in an ImageButton?
Replies: 2
Views: 230

Re: Is there a way to change xzoom/yzoom for different states in an ImageButton?

Here's an example using transform events to scale the button to 1.25 when hovered (and back). Plenty more information on events in Imperf3kt's link :) screen example(): imagebutton: align .5, .5 idle Solid('f777', xysize=(160, 90)) hover Solid('7f77', xysize=(160, 90)) action NullAction() at transfo...
by strayerror
Mon Mar 04, 2019 10:03 pm
Forum: Ren'Py Questions and Announcements
Topic: renpy text pause
Replies: 2
Views: 155

Re: renpy text pause

I think you're looking for the w tag (https://www.renpy.org/doc/html/text.html#text-tag-w):

Code: Select all

"Jenny went to the park.{w=2.0} She'll be back later."
by strayerror
Mon Mar 04, 2019 8:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Automatic character zoom when speaking
Replies: 11
Views: 1142

Re: Automatic character zoom when speaking

will it always be the one displayed when the character speaks/is zoomed in? Yup :) The ZoomCharacter just wraps around a vanilla Ren'Py character, so it works with layeredimages the same way a normal character does, getting updated automatically as the tags/attributes of the layeredimage are updated.
by strayerror
Sat Mar 02, 2019 1:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Show Images in History What Text [SOLVED]
Replies: 6
Views: 648

Re: Show Images in History What Text

First, if you first created your game prior to Ren'Py 7.1.1, make sure you read these notes (https://www.renpy.org/doc/html/changelog.html?highlight=gui%20history_allow_tags#renpy-7-1-1) and update your history screen definition in screens.rpy as appropriate. ( edit: Turns out this first one (above)...
by strayerror
Sat Mar 02, 2019 12:50 am
Forum: Development of Ren'Py
Topic: Suggestion: "interactive" keyword for screenlang
Replies: 0
Views: 444

Suggestion: "interactive" keyword for screenlang

Some screens can be very decorative as well as functional, and sometimes it makes sense for a screen to remain visible while dialogue occurs, or a video plays etc. For these situations it would be very useful for a screen to be able to become immune to player interaction, while remaining visually un...
by strayerror
Fri Mar 01, 2019 11:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Can a screen be made non-interactive while "saying"?
Replies: 3
Views: 247

Re: Can a screen be made non-interactive while "saying"?

So it seems like this is kinda already present after a fashion in order to support transitions, but unfortunately there's no nice way to leverage it. The desired effect can be demonstrated with: label fish: $ renpy.get_screen('foodmenu').phase = renpy.display.screen.HIDE 'Ewww {color=077}fish{/color...
by strayerror
Fri Mar 01, 2019 6:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Can a screen be made non-interactive while "saying"?
Replies: 3
Views: 247

Re: Can a screen be made non-interactive while "saying"?

Thanks Remix, the say detection is definitely on the right lines, but unfortunately using a NullAction() doesn't suppress the hovered styling making it appear to the player as if it's interactable, and if the player clicks to advance while the mouse is over one of the nulled buttons, the event is ea...
by strayerror
Fri Mar 01, 2019 3:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Can a screen be made non-interactive while "saying"?
Replies: 3
Views: 247

Can a screen be made non-interactive while "saying"?

The scenario is a player character reading a food menu. The player can click on items in the menu and some will lead to an order being made and the story progressing (a jump statement), some will trigger a small exposition dialogue about not liking an item, while continuing to "look" at the menu. Us...
by strayerror
Wed Feb 27, 2019 10:57 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Automatic character zoom when speaking
Replies: 11
Views: 1142

Re: Automatic character zoom when speaking

Can you tell me if I can use layered images with that, or if I need to tweak the code for that? Yup, layered images should work too, you'd just use the layered image name in the character definition: layeredimage gray_sprite: # layered image definition define gray_char = ZoomCharacter('chr1', image...
by strayerror
Mon Feb 25, 2019 2:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Automatic character zoom when speaking
Replies: 11
Views: 1142

Re: Automatic character zoom when speaking

The Placeholder class is used for mocking stuff up when you don't have real character sprites to hand. You won't need them in your version at all. The show and hide statements use image names, while the lines beginning with c1 and c2 are character say statements. I''ve tweaked the example below to b...
by strayerror
Sat Feb 23, 2019 9:16 pm
Forum: Development of Ren'Py
Topic: [Bug report] preferences.skip_unseen documentation error
Replies: 1
Views: 454

Re: [Bug report] preferences.skip_unseen documentation error

EDIT Ooops, misinterpreted this as your expectation being that the behaviour should match the current documentation, which having now reread the topic title I see isn't the case. Redundant reiteration follows ... awkward! :oops: I think this is perhaps a documentation issue, as the behaviour and se...
by strayerror
Sat Feb 23, 2019 8:47 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I "reset" a language every time a new line of dialogue is said?
Replies: 2
Views: 316

Re: How can I "reset" a language every time a new line of dialogue is said?

You're on the right track with config.character_callback . The problem you're facing where it appears not to be working is due to how changing language works, it restarts the current interaction. This means that when you switch language, the preferences.language setting is updated, then the current ...
by strayerror
Fri Feb 22, 2019 2:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Automatic character zoom when speaking
Replies: 11
Views: 1142

Re: Automatic character zoom when speaking

Disclaimer: I'm not sure that this is the best way, or the most Ren'Py-y way to do this, but here's one possibility. Note that in this instance the zoom is unconditional, and always uses the same transforms, but if necessary you could parameterise those things to make it more flexible if needed. tra...