Two objects work together with animations?

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
Settle for Pocky
Regular
Posts: 33
Joined: Sun Jul 08, 2018 8:49 am
Contact:

Two objects work together with animations?

#1 Post by Settle for Pocky » Wed Oct 31, 2018 11:33 am

So I hope I didn't make life really hard for myself here.

So my characters have their head and bodies "sewed" together to save space so there are only 26 different heads and not 26 full bodies.

Now through the fun xalign/yalign I've been able to have them be at certain locations on the screen and look normal.

Now in terms of animation/transitions
(specifically dissolve, move"in/outs," moving towards screen, and a little pop forward (to make it show the player knows who is talking)
Is it easier just for me to scrap the body/head thing for this?

I also had trouble having the character exiting the screen slightly and pop back up (I wanted the lower body slightly cut off so it can pop up a little bit when moving forward or scared and popping straight up)

I know those are loaded questions but these are big things that I've having trouble with that have me at a stand still.

It's complicated so I'm willing to donate through paypal if it's a lot of trouble here

take care and thanks again,
Patrick B.

-------------------------------------------------------------------------------------------------------------------------------
So to make it easier to read.
I'll use this ddlc as reference to certain things for what I'm looking for

- body/head separate and sewed together good idea? If so how to make them work together for animations/transitions (especially dissolve and move"in/out"screen)
- have body cut off at times for moving up and forward for talking (1:08:57-1:09:06) https://www.youtube.com/watch?v=Hh2ae4a9JPE&t=3106s

DannX
Regular
Posts: 99
Joined: Mon Mar 12, 2018 11:15 am
Contact:

Re: Two objects work together with animations?

#2 Post by DannX » Wed Oct 31, 2018 12:48 pm

You may want to look into layered images. There's a detailed tutorial here.


rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: Two objects work together with animations?

#4 Post by rames44 » Fri Nov 02, 2018 11:41 am

As DannX says, what you probably want to look at is combining your individual heads and bodies together into composite images. There is a Composite type (formerly LiveComposite) class that will do that, however the new LayeredImage approach can be more powerful and efficient depending on what you’re doing.

Once you’ve defined your composite images, then they’re easy to move, scale, etc, because you’re manipulating the composite - the individual component pieces within will maintain their alignment with respect to one another.

Post Reply

Who is online

Users browsing this forum: Google [Bot], span4ev