Search found 159 matches

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

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

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

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

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

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...
by strayerror
Wed Feb 20, 2019 1:19 pm
Forum: Ren'Py Questions and Announcements
Topic: layeredimage with dissolve
Replies: 1
Views: 259

Re: layeredimage with dissolve

I think you're meant to use it more like this, but haven't had a chance to test it: layeredimage bob: always: "bobBody.png" group face: attribute face1 default "bobface1.png" attribute face2 "bobface2.png" label start: bob "Hello." show bob face2 with Dissolve...
by strayerror
Tue Feb 19, 2019 7:00 pm
Forum: Ren'Py Questions and Announcements
Topic: image not displaying
Replies: 3
Views: 257

Re: image not displaying

Per K Grok is correct. It's also possible to use the as keyword to associate a tag with the shown images which lets renpy know it should replace them, rather than layer them, so this would also work and avoids the need to manage the hides manually, think of it as all the images belonging to a group,...
by strayerror
Tue Feb 19, 2019 6:47 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I hide the textbox when calling a screen?
Replies: 11
Views: 1115

Re: How can I hide the textbox when calling a screen?

Would reordering slightly to achieve this be acceptible? It should be possible to do this: label some_label_name: show background beach eileen "Hello!" jack "Hello to you Eileen" call screen some_buttons # using call here will wait until the screen exits before proceeding return ...
by strayerror
Tue Feb 19, 2019 4:38 pm
Forum: Ren'Py Questions and Announcements
Topic: Reserved names
Replies: 2
Views: 229

Re: Reserved names

I suspect that at least len may be problematic, as it's a commonly used top-level function in python. I'd expect redefining like this it to give you some grief.
by strayerror
Sun Feb 17, 2019 5:51 am
Forum: Ren'Py Questions and Announcements
Topic: How to make another "action"?
Replies: 2
Views: 248

Re: How to make another "action"?

You can provide more than one action by placing them in a tuple/list. So:

Code: Select all

action SetField(persistent, "badword", 0)
# would become 
action (SetField(persistent, "badword", 0), Return())
# or
action (SetField(persistent, "badword", 0), Jump('next_label'))
by strayerror
Thu Feb 14, 2019 7:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Displaying Image Function Positioning
Replies: 2
Views: 469

Re: Displaying Image Function Positioning

You're on the right track, but at_list is expecting an iterable type. In python that's typically a list or a tuple (although there are others). I've not had a chance to test this, but I believe you just need to wrap holdleft in a list. Here's a before and after: renpy.show(image, at_list=holdleft) #...
by strayerror
Tue Feb 12, 2019 7:14 am
Forum: Development of Ren'Py
Topic: Suggestion: Default transition/with for layeredimage groups
Replies: 4
Views: 792

Re: Suggestion: Default transition/with for layeredimage groups

Aha, that makes sense, thanks for explaining :)
by strayerror
Mon Feb 11, 2019 5:37 pm
Forum: Development of Ren'Py
Topic: Suggestion: Default transition/with for layeredimage groups
Replies: 4
Views: 792

Re: Suggestion: Default transition/with for layeredimage groups

Ooops, re-reading the OP I see I didn't do a great job of articulating the feature. This wasn't a suggestion that different parts of the LI use different transitions, only that when the LI knows an attribute within a certain group will be updated, it uses a transition against the entire LI, such tha...
by strayerror
Sun Feb 10, 2019 2:07 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make an exclamation mark dance over someone's head?
Replies: 7
Views: 763

Re: How to make an exclamation mark dance over someone's head?

Following on from Donmai's comment: I believe you'll get a syntax error if you try to use the at keyword twice on the same line, so you just need to stack them: label start: show e onlayer screens show exclamation at truecenter, shake onlayer screens Also, as an aside, the xalign 0.4 yalign 0.4 part...
by strayerror
Sun Feb 10, 2019 1:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Jump to variable determined label? (solved)
Replies: 10
Views: 10137

Re: Jump to variable determined label?

First, all of the options presented by xela will work for you. I'm just going to expand a little on the expression keyword, which is the way to do what you're asking without leaving renpy and jumping into python. The expression keyword causes the remainder of the line to be evaluated and the result ...