Is it bad to use "hide" and "show" a lot?

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
Settle for Pocky
Regular
Posts: 33
Joined: Sun Jul 08, 2018 8:49 am
Contact:

Is it bad to use "hide" and "show" a lot?

#1 Post by Settle for Pocky »

When I started learning I did a lot of this but learned that you really don't need the "hide" section, but now I really find it useful to keep everything set for me.
The question is will it slow down the performance?

Example:

Code: Select all

    
    show t at t_single
    show tr at t_single
    
    T "112 \"Hey [P]! So glad you came.\""
    
    hide t at t_single
    hide tr at t_single
    show t at t_FCU_single
    show tq at t_FCU_single
For that example I don't "show and hide" everything (such as I would only "show and hide" a new mouth change, but leave the body image alone"

I also had some problems not using hide for some where I needed to put "hide." I heard the names have to be similar for one to replace the other

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Is it bad to use "hide" and "show" a lot?

#2 Post by Per K Grok »

Settle for Pocky wrote: Mon Mar 04, 2019 11:24 pm When I started learning I did a lot of this but learned that you really don't need the "hide" section, but now I really find it useful to keep everything set for me.
The question is will it slow down the performance?

Example:

Code: Select all

    
    show t at t_single
    show tr at t_single
    
    T "112 \"Hey [P]! So glad you came.\""
    
    hide t at t_single
    hide tr at t_single
    show t at t_FCU_single
    show tq at t_FCU_single
For that example I don't "show and hide" everything (such as I would only "show and hide" a new mouth change, but leave the body image alone"

I also had some problems not using hide for some where I needed to put "hide." I heard the names have to be similar for one to replace the other


If you are using a common "family-name" for images intended to be replaced with each other you will not need to hide an earlier image when showing a replacement image.

for example
---------------------
show sami happy
[stuff]
show sami puzzled
-------------------------
You will not need to hide 'sami happy'.
This is what is recommended in the manual.

I do however doubt that the performance will be effected by using hide.

Settle for Pocky
Regular
Posts: 33
Joined: Sun Jul 08, 2018 8:49 am
Contact:

Re: Is it bad to use "hide" and "show" a lot?

#3 Post by Settle for Pocky »

Ok thank you :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Ocelot