How do I make "Hide" option automatic?

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
Gustavs14
Regular
Posts: 44
Joined: Mon Apr 03, 2017 2:06 pm
Contact:

How do I make "Hide" option automatic?

#1 Post by Gustavs14 »

Basically, after every show "x image", I have to use hide "x image" and I feel like that's a real bother (Maybe I am doing something wrong, but whenever I just use "show" without hiding previous image, the previous image stays there...forever, so I absolutely need to do this currently), so I'm wondering if there is any way I can make it so that whenever a new "show image" image appears, It automatically goes "over' the previous image or something?

thanks.

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: How do I make "Hide" option automatic?

#2 Post by Scribbles »

you should try scene vs show?
Image - Image -Image

Gustavs14
Regular
Posts: 44
Joined: Mon Apr 03, 2017 2:06 pm
Contact:

Re: How do I make "Hide" option automatic?

#3 Post by Gustavs14 »

Scribbles wrote:you should try scene vs show?
every time I use scene there is a small "fade" or something similar to it and the text disappears for like half a second...

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How do I make "Hide" option automatic?

#4 Post by Imperf3kt »

You could cheat and use "show xxx as xxx"

For example:

Code: Select all

    show eileen at left
    eileen "Hey, Lucy, lets go buy pizza!"
    show lucy as eileen
    lucy "Sounds great."

Of course, this only works for back-and-forth conversations where both characters occupy the same area
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
TellerFarsight
Veteran
Posts: 230
Joined: Sun Jun 04, 2017 8:09 pm
Projects: Vora, Secrets Untold
Location: Toronto, ON
Contact:

Re: How do I make "Hide" option automatic?

#5 Post by TellerFarsight »

What kind of images we talkin'?
Can you use tags to define groups of images? Sprites use tags so that showing a new expression overwrites the previous expression, and you can make use of that for whatever images you're talking about. This is essentially what Imperf3kt's solution is; both eileen and lucy in the example have the "eileen" tag, and so both can't exist at the same time. So, showing one automatically hides the other.
Current Project: Vora
Also Check Out: Devil Survivor [Reverse-Engineered]

User avatar
Taleweaver
Writing Maniac
Posts: 3428
Joined: Tue Nov 11, 2003 8:51 am
Completed: Metropolitan Blues, The Loyal Kinsman, Daemonophilia, The Dreaming, The Thirteenth Year, Adrift, Bionic Heart 2, Secrets of the Wolf, The Photographer
Projects: The Pilgrim's Path, Elspeth's Garden, Secret Adventure Game!
Organization: Tall Tales Productions
Location: Germany
Contact:

Re: How do I make "Hide" option automatic?

#6 Post by Taleweaver »

Moved to Ren'Py Questions.
Scriptwriter and producer of Metropolitan Blues
Creator of The Loyal Kinsman
Scriptwriter and director of Daemonophilia
Scriptwriter and director of The Dreaming
Scriptwriter of Zenith Chronicles
Scriptwriter and director of The Thirteenth Year
Scriptwriter and director of Romance is Dead
Scriptwriter and producer of Adrift
More about me in my blog
"Adrift - Like Ever17, but without the Deus Ex Machina" - HigurashiKira

User avatar
vollschauer
Veteran
Posts: 231
Joined: Sun Oct 11, 2015 9:38 am
Github: vollschauer
Contact:

Re: How do I make "Hide" option automatic?

#7 Post by vollschauer »

"Bundle" your character images, so you don't have to hide the previous one if you show the "next" image of the same character

https://www.renpy.org/doc/html/displayi ... -statement

Post Reply

Who is online

Users browsing this forum: No registered users