How To Make Sprites Larger When Talking?

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
User avatar
Wiley_Bun
Newbie
Posts: 5
Joined: Mon Jul 01, 2019 9:55 pm
Deviantart: Wiley-Bun
Location: California
Contact:

How To Make Sprites Larger When Talking?

#1 Post by Wiley_Bun »

I am so sorry if this question is super basic, sometimes I can just be slow haha. I looked everywhere for a tutorial or something, but I couldn't find one!
I got inspiration from Doki Doki Literature Club; When the characters spoke, they got a bit larger when talking and then shrank when they were done.
I hope what I'm asking for makes sense. Thank you so much to anyone that comments!

User avatar
Sunlit-Dreamer
Veteran
Posts: 400
Joined: Thu Sep 22, 2011 12:41 am
Completed: NaNo2015 Bedtime, NaNo2016 The Doll and the Spider, NaNo2017 What's Your Name?, NaNo2018 Painting Your Skin, NaNo2019 Home's Embrace, NaNo2020 Molly
Projects: NaNo2021 Cracked Moonstone
Deviantart: Sunlit-Dreamer
itch: Sunlit-Dreamer
Location: Lala land~
Contact:

Re: How To Make Sprites Larger When Talking?

#2 Post by Sunlit-Dreamer »

It has the zoom in, but you'll have to figure out the code to shrink it back to normal size.

https://www.reddit.com/r/vndevs/comment ... _in_renpy/
ImageImageImageImage

User avatar
Wiley_Bun
Newbie
Posts: 5
Joined: Mon Jul 01, 2019 9:55 pm
Deviantart: Wiley-Bun
Location: California
Contact:

Re: How To Make Sprites Larger When Talking?

#3 Post by Wiley_Bun »

Sunlit-Dreamer wrote: Thu Jul 04, 2019 12:41 am It has the zoom in, but you'll have to figure out the code to shrink it back to normal size.

https://www.reddit.com/r/vndevs/comment ... _in_renpy/
I saw that actually, but I didn't understand at all how to use it ///

User avatar
Sunlit-Dreamer
Veteran
Posts: 400
Joined: Thu Sep 22, 2011 12:41 am
Completed: NaNo2015 Bedtime, NaNo2016 The Doll and the Spider, NaNo2017 What's Your Name?, NaNo2018 Painting Your Skin, NaNo2019 Home's Embrace, NaNo2020 Molly
Projects: NaNo2021 Cracked Moonstone
Deviantart: Sunlit-Dreamer
itch: Sunlit-Dreamer
Location: Lala land~
Contact:

Re: How To Make Sprites Larger When Talking?

#4 Post by Sunlit-Dreamer »

Okay, figured out how to shrink it. It's actually simple. I'll write an example code for you.

Code: Select all

label start:

    show boy:
    	xalign 0.5
    	ease 0.5 zoom 1.2

    boy "I am now big and in the middle."

    show boy:
    	xalign 0.5
    	ease 0.5 zoom 1.0
    	
    show girl:
    	xalign 0.25
    	ease 0.5 zoom 1.2
    	
    girl "I'm big now and the boy's small again!"
    
    show girl:
    	xalign 0.25
    	ease 0.5 zoom 1.0
    	
    girl "Dang, I'm small now."

    return
Last edited by Sunlit-Dreamer on Thu Jul 04, 2019 4:57 pm, edited 1 time in total.
ImageImageImageImage

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: How To Make Sprites Larger When Talking?

#5 Post by trooper6 »

There are more efficient ways to do this, but they involve more complicated code.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978


Post Reply

Who is online

Users browsing this forum: No registered users