XaiJu
Renpytom
Renpytom

patreon


Layered Image Conversion

Perhaps the biggest new feature of Ren'Py 7 is the new layered image system, which lets you build a sprite up from multiple layered of images, as you might export from a pain program. This is something many of you have been doing already, so this month's article is on how to convert a sprite defined using LiveComposite and ConditionSwitch to layered images.

As usual, this article requires the latest prerelease of Ren'Py 7.0.0, which you can download from renpy.org. I'm hoping the layered image system makes creating visual novels that much easier. 

I'd like to thank the team behind Arcade Spirits for giving me their sprite to test with, and all my sponsors for your support of Ren'Py development.

Layered Image Conversion

Comments

In a follow up to this, I have since gotten mouth animation to work with layered Images, I think I should also be able to get the eyes to move. Rotating the arms about the shoulder is something I have yet to try, if I try it and get it to work I will post something about it.

Computer Art Club

Hey PyTom, I am just trying to reorganize my art to try this out in a new game. One thing I am really interested in is if it is possible to transform (rotate or reposition) parts of a sprite using this technique. For example, there are two things I would like to be able to move, the pupils and the arms (on the subject of arms, being able to rotate about a predefined point such as the shoulder would be ideal). And a follow up question, is it possible to animate using this method (e.g. animating the pupils as they glance from one direction to the other or animate arms as they flap up and down).

Computer Art Club

"as you might export from a pain program." hehehe Freudian slip perhaps :p

waffel

I am finally getting around to updating my game to use the new layered images! I think it's only been ~50 days since this was posted, so I'm guessing if I need help I shouldn't be posting in the lemmasoft forums yet? (Just having a problem where I followed the instructions in the tutorial, but the code is treating my images as undefined and I'm wondering what I did wrong...)

noeinan

Generally not. Tranparency is usually very cheap to compress.

Renpytom

Cool, I wonder how this compares in terms of file size. This necessitates having a transparent space where the rest of the body would be, for the arm images, for example. It saves on specifying the location of layers but probably increases file size quite a bit, or am I wrong?

Computer Art Club

A pain program. Hehe.

Crissa Kentavr

wooth is even more powerful than I thought. The wolves thank you :P

Winter Wolves Games

Holy wow, this is exactly what I’ve been trying to do these past few months. Thank you!

Nicholas Swenson


More Creators