How to hide text window when displaying an image?

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
amada
Newbie
Posts: 6
Joined: Fri May 13, 2016 7:08 am
Contact:

How to hide text window when displaying an image?

#1 Post by amada »

Hi! I have this bit in the short game I'm working on where I want a magic circle to appear in the middle of the screen and rotate clockwise then stop rotating. I've consulted viewtopic.php?f=51&t=16604 and viewtopic.php?t=36673 and was able to successfully replicate what I wanted. However, my problem is that whenever this happens, the textbox and nvl window (on different parts of the game) always seem to block what's happening. I've tried using "window hide" but it doesn't seem to work.

I'd appreciate any help on this!

User avatar
skyeworks
Regular
Posts: 84
Joined: Thu Jul 27, 2017 11:36 am
Projects: K9-11
itch: skyefrost
Contact:

Re: How to hide text window when displaying an image?

#2 Post by skyeworks »

Use renpy.pause :D!

Code: Select all

    show image "jul31"
    $ renpy.pause ()  
will wait untill player click
or

Code: Select all

 show image "jul31"
    $ renpy.pause (1.0) 
will wait 1 sec or player's click to continue

Both will make the text box disappear for that one moment!
Image

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

Re: How to hide text window when displaying an image?

#3 Post by Imperf3kt »

Have you tried window auto?
You can force the behaviour you want by including these two configs in options.rpy

define config.window_auto_hide = [ 'scene', 'call screen' ]
A list of statements that cause window auto to hide the empty dialogue window.

define config.window_auto_show = [ 'say' ]
A list of statements that cause window auto to show the empty dialogue window.
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

Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot]