partial 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
Recca Phoenix
Veteran
Posts: 230
Joined: Tue Jan 23, 2007 3:39 pm

partial animation

#1 Post by Recca Phoenix »

If I wanted to do blinking character graphics, is it possible to have the animation in 2 images:
1)closed eyes (No face, just the eyes)
2) the actual face
sort of like an overlay? Or do I have to have the faces twice?

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

Re: partial animation

#2 Post by DaFool »

You can have
1.) The full face, eyes open
2.) Closed eyes but with a bit of skin so when you composite them with the face, they cover the open eyes.

I'll have a sample in a bit...

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

Re: partial animation

#3 Post by DaFool »

Code: Select all

    $ tbase = im.Composite((225, 600), (0, 0), "blank.png", (0, 300), "trollbase.png")
    $ tblink = im.Composite((225, 600), (0, 0), "blank.png", (0, 300), "trollbase.png", (0, 300), "trollblink.png")
I can then use tbase and tblink as the two states of animation.

Don't mind my "blank.png", it's for proper positioning of all the sprites so that the headshots don't get messed up.
Attachments
trollblink.png
trollblink.png (4.62 KiB) Viewed 843 times
trollbase.png
trollbase.png (55.73 KiB) Viewed 844 times

Post Reply

Who is online

Users browsing this forum: No registered users