Character sprites appearing on top of each other...?

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
Chushiki Maho
Regular
Posts: 174
Joined: Wed Jan 04, 2012 3:28 pm
Projects: X-Tasy, Teacher Pets, Virus
Organization: Infinite Scribbles Productions
Location: Check Your Closet.
Contact:

Character sprites appearing on top of each other...?

#1 Post by Chushiki Maho »

I've been working on my project and one thing I've noticed, is that, when my characters change emotions, they appear beside each other, overlapping one another. (Its like my character has a twin who's right beside her even though I changed the characters emotion in the same spot...)

I've tried to put show and hide after every emotion change, but then the character disappears off the screen for a second, and I don't really want that...

What should I do...? (BTW, its for a NaNo project, and I only have one more day... I'm also contacting my coder about this, but I thought I'd just pop this in to see if anyone can solve it for me before he does.)
X-Tasy - GXB (WIP)
~ My Fanfiction
Virus [NaNoRenO 2012]
French to English (or vice-versa) VN translator ~ PM me if interested :3

User avatar
Gambit74
Regular
Posts: 172
Joined: Sun Oct 23, 2011 3:09 am
Location: USA
Contact:

Re: Character sprites appearing on top of each other...?

#2 Post by Gambit74 »

Are you using the same image tag for each of the expressions? Examples:

Code: Select all

image a happy = "a_happy.png"
image a sad = "a_sad.png"
image a mad = "a_mad.png"
Each image tag begins with the lowercase a. When you use the same tag for each image, the old image will be replaced by the new one.

So in this example:

Code: Select all

show a happy
a "I'm so happy!"

show a sad
a "Now I'm sad..."

show a mad
a "I am so angry now!"
It'll show a's happy expression first. When you move on to the next dialogue, a's happy expression will be replaced with sad. Then their mad expression will replace sad when you continue to the next scene.

Hope this helps :) .
Nothing to see here, folks. For now, anyway...

Chushiki Maho
Regular
Posts: 174
Joined: Wed Jan 04, 2012 3:28 pm
Projects: X-Tasy, Teacher Pets, Virus
Organization: Infinite Scribbles Productions
Location: Check Your Closet.
Contact:

Re: Character sprites appearing on top of each other...?

#3 Post by Chushiki Maho »

Oh wow, all I needed was a space. XD Thanks! :)
X-Tasy - GXB (WIP)
~ My Fanfiction
Virus [NaNoRenO 2012]
French to English (or vice-versa) VN translator ~ PM me if interested :3

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Ocelot