I just realized a problem with my portraits.
I'm using custom code to render the portrait since it consists of multiple possible combinations and I want to have blinking and lip-flapping as well.
It was working before, but now, I believe after I updated to Renpy 6.99.6.739 it broke.
I broke down my code to this:
Code: Select all
init -5 python:
class Portrait(renpy.Displayable):
def __init__(self, width=391, height=600, speaker=None, **kwargs):
try:
super(Portrait, self).__init__(**kwargs)
self.width = width
self.height = height
self.speaker = speaker
except Exception as ex:
renpy.log("Error: Portrait Object for %s couldn't be created.\n%s" % (speaker, ex))
def render(self, width, height, st, at):
portrait = Image("sylvie_smile.png")
portrait_render = renpy.render(portrait, self.width, self.height, st, at)
# Return the render.
flatten_portrait = renpy.display.render.Render(self.width, self.height)
flatten_portrait.blit(portrait_render.render_to_texture(True), (0, 0))
flatten_portrait.depends_on(portrait_render, focus=True)
return flatten_portrait
Code: Select all
image sylvie portrait = Portrait(width=391, height=600, speaker="Sylvie")
.........................
show sylvie portrait
The smaller the window, the smaller and further to the top left is the image(see attached images)
Does anyone have an idea what my problem could be or is it really a problem/change in renpy itself?