Page 1 of 1

[solved]Question Integrating breathing animation?

Posted: Tue Mar 07, 2017 2:21 pm
by Cristiander
I've seen other programs using Live2d and similar software to give more life to the portraits.
Does Ren'py have such an option?

I want to give a simple breathing animation for my characters

Re: Question Integrating breathing animation?

Posted: Tue Mar 07, 2017 2:35 pm
by indoneko
Renpy doesn't support Live2D.

You could, however, export your live2D animation into a movie (preferably in webm format) and then use that displayable in renpy.

Re: Question Integrating breathing animation?

Posted: Tue Mar 07, 2017 2:55 pm
by Cristiander
indoneko wrote:Renpy doesn't support Live2D.

You could, however, export your live2D animation into a movie (preferably in webm format) and then use that displayable in renpy.
Would that start to lag the game if I use too many?

Re: Question Integrating breathing animation?

Posted: Tue Mar 07, 2017 4:56 pm
by Imperf3kt
No as it is one displayable.
If you export a movie, make a separate movie for each scenario.
If, however, you export still images and use ATL to string them together, possibly.

Re: Question Integrating breathing animation?

Posted: Wed Mar 08, 2017 4:16 am
by famakki1
If your 'breathing' sprite/character can be split into multiple frames, you could use ATL to define an image as an animation. For example:

Code: Select all

image character:
        "data/character_frame1.png"
        linear 0.1
        "data/character_frame2.png"
        linear 0.1
        "data/character_frame3.png"
        linear 0.1
        "data/character_frame4.png"
        linear 0.1
        "data/character_frame3.png"
        linear 0.1
        "data/character_frame2.png"
        linear 0.1
        repeat
Later on you can just use normal show functions to place your images...

Code: Select all

show character at center with dissolve

Re: Question Integrating breathing animation?

Posted: Wed Mar 08, 2017 2:58 pm
by indoneko
Cristiander wrote:Would that start to lag the game if I use too many?
Just curious... how many animations (sprites and what not) are you going to put on screen all at once?

Re: Question Integrating breathing animation?

Posted: Thu Mar 09, 2017 1:36 am
by ISAWHIM
There is also a neat "GL shader", called "renpy-shader"... Not an easy thing to setup, but it can do that, and more.

I personally use the above posted manual animation method for my work.


Re: Question Integrating breathing animation?

Posted: Thu Mar 09, 2017 6:25 am
by SundownKid
You can make a Live2D-esque animation using ATL. The simplest way would be to make a repeating animation where the yzoom of the character slightly decreased and increased using an "ease" type of transform. Or you can separate the head into another part so only the torso changes in size while the head just goes up and down. You can even combine it with lip-flap while they are moving.

Re: Question Integrating breathing animation?

Posted: Wed Mar 15, 2017 4:21 pm
by Cristiander
I ended up exporting my animation as a webm and defining it as an image.

Still, thank you guys for all the options :)
The shader demo looks especially interesting.

Re: [solved]Question Integrating breathing animation?

Posted: Thu Dec 14, 2017 12:26 pm
by Sehaf
I tried to do the shader demo, All of it worked but the bone edditor. >_<
Anyone who got that working?