Character understanding

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
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Character understanding

#1 Post by isobellesophia »

Hello everyone.

So i was just trying to confirm one thing, about characters and their sprites.
Okay... for example.. i defined a name Elieen and the short name for her dialogue are "e"

So like this..

Code: Select all

e "Hello world!"
As i already know, characters can be named in many ways like this.

Code: Select all

show e happy with dissolve
e "Hello world!"
What i don't get is... if i defined a different name and a different image name, does the sprite show twice in the same time when i am trying to change the character's expression while trying to change the short name dialogue?

Just because i have a voice act in my feature. That's it.

Like this for example, i defined a different name code into "e2"

Code: Select all

show e happy
e2 "Hello world!"
show e2 happy 2  #Just in case the image show twice.
e "Hello world!"
Im sorry that i can't have a chance to touch computer, i was in my tab so...
Btw sorry for my bad english.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
qirien
Miko-Class Veteran
Posts: 541
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Discord: qirien
Contact:

Re: Character understanding

#2 Post by qirien »

So, in your code example, e and e2 are two completely different sprites. So, in your example, yes, they would show twice. If you want to have one character called "e" with multiple expressions, you should have the sprites in your game/images directory named something like
"e happy.jpg"
"e sad.jpg"
"e amused.jpg"
And then you can use them in your script by writing something like:

Code: Select all

show e happy
e sad "I had a hard time with images..."
e happy "But now that I understand it, it's not too bad!"
e amused "Now I just have to decide what to write..."
Is this what you want to do?

You can also define lots of different tags for different things, like

Code: Select all

e dress happy "Party time!"
if you have a corresponding image like "e dress happy.jpg"
Finished games:
Image
Image
Image

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: Character understanding

#3 Post by trooper6 »

Also you shouldn't name different things the same.
So you should not have a character named e and a sprite named e. That will lead to problems.

So if your character is called e, then name your sprite eileen, or whatever.
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

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Character understanding

#4 Post by isobellesophia »

Now i get it, thanks for all the advice, it seems all helpful to me.
I am a friendly user, please respect and have a good day.


Image

Image


Post Reply

Who is online

Users browsing this forum: Google [Bot]