Search found 17 matches

by Nephthys
Sat Apr 15, 2023 7:14 pm
Forum: Ren'Py Questions and Announcements
Topic: {nw} tag and self-voicing.
Replies: 2
Views: 264

Re: {nw} tag and self-voicing.

On a similar topic, is there a python equivalent to the 'alt' command?
by Nephthys
Sat Apr 15, 2023 7:10 pm
Forum: Ren'Py Questions and Announcements
Topic: {nw} tag and self-voicing.
Replies: 2
Views: 264

{nw} tag and self-voicing.

I'm doing a quick check on accessibility across my project, and I've noticed that lines with {nw} at the end get skipped when using the self-voicing option. I've had a check for previous mentions of this, but I've only found discussion with regard to having voiced lines associated with dialogue, and...
by Nephthys
Fri Apr 14, 2023 1:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Having some menu choices hidden, others greyed out
Replies: 2
Views: 346

Re: Having some menu choices hidden, others greyed out

Thank you that's a great solve, definitely works like a charm! I had a feeling that it seemed like I could pass values from the choices down to Python like that, but I still can't for the life of me work out how Ren'Py code translates to a more standard function/argument format. Being able to pass a...
by Nephthys
Fri Apr 14, 2023 11:27 am
Forum: Ren'Py Questions and Announcements
Topic: Having some menu choices hidden, others greyed out
Replies: 2
Views: 346

Having some menu choices hidden, others greyed out

So I'm aware that you can set: define config.menu_include_disabled = True to toggle whether menu choices that don't meet requirements are hidden from view, or greyed out. However, ideally I'd like to decide choice by choice, whether that choice should be hidden or greyed out? Consider this script: d...
by Nephthys
Thu Apr 13, 2023 8:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Initialising members of a default-ed class
Replies: 2
Views: 251

Re: Initialising members of a default-ed class

Thanks! This has effectively been my workaround so far - in particular just having optional named parameters in the constructor - the factory function doesn't feel much more elegant, just outsources the work to a new separate function. But in short then - keep all of the initialisation on a single l...
by Nephthys
Thu Apr 13, 2023 7:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Initialising members of a default-ed class
Replies: 2
Views: 251

Initialising members of a default-ed class

Let's assume I have a simple class: init python: class Character: def __init__(self, firstname, lastname): self.firstname = firstname self.lastname = lastname self.hitpoints = 100 I can't instantiate that class in the init python block, because then it won't be stored properly and won't respect load...
by Nephthys
Thu Apr 13, 2023 5:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Displaying a Cropped Paperdoll as Portrait
Replies: 4
Views: 324

Re: Displaying a Cropped Paperdoll as Portrait

I tried side images, but I think I keep having the same issue with all non-Python Ren'Py code - I really struggle to tell what keywords can work in what context. I couldn't get side images to appear/disappear or refer to them properly, and it seemed like they needed to be tied to characters maybe? E...
by Nephthys
Thu Apr 13, 2023 10:25 am
Forum: Ren'Py Questions and Announcements
Topic: Displaying a Cropped Paperdoll as Portrait
Replies: 4
Views: 324

Re: Displaying a Cropped Paperdoll as Portrait

Thanks, that's a helpful start at least!
by Nephthys
Thu Apr 13, 2023 8:59 am
Forum: Ren'Py Questions and Announcements
Topic: Displaying a Cropped Paperdoll as Portrait
Replies: 4
Views: 324

Displaying a Cropped Paperdoll as Portrait

I would like to be able to show a paperdoll character on the screen when they are present, but also display a portrait for them - based on a cropped version of that paperdoll - when they are speaking, next to the text. What I have currently is something like this: image player_paperdoll = Composite(...
by Nephthys
Fri Jan 06, 2023 7:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Animating a Displayable on Button Click
Replies: 4
Views: 324

Re: Animating a Displayable on Button Click

Thank you so much, setting the transform to take parameters in #3 is what ultimately did the trick for me!
by Nephthys
Fri Jan 06, 2023 7:57 am
Forum: Ren'Py Questions and Announcements
Topic: Animating a Displayable on Button Click
Replies: 4
Views: 324

Re: Animating a Displayable on Button Click

Thanks, this works! I'm curious why this works, but this doesn't: init python: zoom_level = 1.0 def zoom_in(): zoom_level = min(zoom_level + 0.1, 2.0) def zoom_out(): zoom_level = max(zoom_level - 0.1, 0.1) transform variable_zoom: linear 1.0 zoom zoom_level image character: "character.png"...
by Nephthys
Thu Jan 05, 2023 10:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Animating a Displayable on Button Click
Replies: 4
Views: 324

Animating a Displayable on Button Click

This seems like a really simple one, but I've not been able to find anything at all that covers this in the forums or documentation after exhaustive searching. There seem to be a lot of threads about how to animate the button itself after it has been clicked, but not how to get the button to animate...
by Nephthys
Fri Sep 02, 2022 7:19 am
Forum: Ren'Py Questions and Announcements
Topic: Loading new images from disk while game is running
Replies: 5
Views: 417

Re: Loading new images from disk while game is running

Oh I think I finally got it! Took a while of digging through documentation, but I've finally realised that renpy.show() doesn't just have to use the name of an image registered by renpy.image(). If you use the optional 'what' argument you can pass a displayable directly to renpy.show() and bypass th...
by Nephthys
Fri Sep 02, 2022 6:54 am
Forum: Ren'Py Questions and Announcements
Topic: Loading new images from disk while game is running
Replies: 5
Views: 417

Re: Loading new images from disk while game is running

Thank you! The news module in particular is a great example - im.Data() is a function I hadn't seen before, and that makes some of what I'm doing a lot easier. I'm starting to understand the different ways in which images are handled better. So I guess the main issue I'm having now is - I can make a...
by Nephthys
Thu Sep 01, 2022 6:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Loading new images from disk while game is running
Replies: 5
Views: 417

Loading new images from disk while game is running

In brief, is there any workaround that would allow me to load a new image via Python after init? I am downloading new image files while the game is running, and would like to display them as background/character images. However, I cannot run renpy.image outside of init. I've tried using a DynamicIma...