[solved]Question Integrating breathing animation?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Cristiander
Regular
Posts: 33
Joined: Sat Mar 04, 2017 8:19 am
Contact:

[solved]Question Integrating breathing animation?

#1 Post 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
Last edited by Cristiander on Sun Apr 02, 2017 2:31 pm, edited 1 time in total.

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: Question Integrating breathing animation?

#2 Post 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.
My avatar is courtesy of Mellanthe

Cristiander
Regular
Posts: 33
Joined: Sat Mar 04, 2017 8:19 am
Contact:

Re: Question Integrating breathing animation?

#3 Post 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?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Question Integrating breathing animation?

#4 Post 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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

famakki1
Regular
Posts: 55
Joined: Wed Oct 12, 2016 7:40 am
Contact:

Re: Question Integrating breathing animation?

#5 Post 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

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: Question Integrating breathing animation?

#6 Post 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?
My avatar is courtesy of Mellanthe

User avatar
ISAWHIM
Veteran
Posts: 318
Joined: Sun Nov 06, 2016 5:34 pm
Contact:

Re: Question Integrating breathing animation?

#7 Post 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.


SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Question Integrating breathing animation?

#8 Post 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.

Cristiander
Regular
Posts: 33
Joined: Sat Mar 04, 2017 8:19 am
Contact:

Re: Question Integrating breathing animation?

#9 Post 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.

User avatar
Sehaf
Regular
Posts: 58
Joined: Thu Feb 25, 2010 9:22 pm
Projects: Demon Lord & Yuki Academy
Deviantart: Sehad
Location: Sweden
Contact:

Re: [solved]Question Integrating breathing animation?

#10 Post by Sehaf »

I tried to do the shader demo, All of it worked but the bone edditor. >_<
Anyone who got that working?
I'm a GameMaker!
My Portfolio: http://www.bluepipestudio.com

Post Reply

Who is online

Users browsing this forum: No registered users