"show"ing a full screen image without hiding dialog window?

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
AVNSnax
Regular
Posts: 79
Joined: Sun Feb 06, 2022 12:11 am
itch: avnsnax
Contact:

"show"ing a full screen image without hiding dialog window?

#1 Post by AVNSnax »

I thought this would be easy, but after a couple of hours of searching the web I'm not any wiser.

I'm trying to display a sequence showing the mc falling asleep slowly while slowly progressing the dialog using extend.The full screen image sequence shows the mc slowly closing his eyes and transition using a slow dissolve. Fine, but the dialog window disappears as long as it takes for each dissolve to complete. The extend functionality doesn't make much sense here with the window constantly blinking in and out of the screen.

Both scene and show hide the dialog window until they complete. Is there any way around this?

I'm a relative newbie so please be kind. Thanks. :)

edgebug
Regular
Posts: 41
Joined: Thu Jun 30, 2016 11:44 pm
Contact:

Re: "show"ing a full screen image without hiding dialog window?

#2 Post by edgebug »

i think that if you put "window show" before the sequence, the window will keep on screen :)
like...

Code: Select all

window show
show whatever
"text text text{nw}"
show whatever
extend "more text more text more text"
that SHOULD do the trick :3

User avatar
AVNSnax
Regular
Posts: 79
Joined: Sun Feb 06, 2022 12:11 am
itch: avnsnax
Contact:

Re: "show"ing a full screen image without hiding dialog window?

#3 Post by AVNSnax »

That's one of the first things I tried. It's the show statement that hides the window, and it doesn't come back until the transition finishes (in this case Dissolve(3.0)).

edgebug
Regular
Posts: 41
Joined: Thu Jun 30, 2016 11:44 pm
Contact:

Re: "show"ing a full screen image without hiding dialog window?

#4 Post by edgebug »

let me see if i can figure something out. one second

edgebug
Regular
Posts: 41
Joined: Thu Jun 30, 2016 11:44 pm
Contact:

Re: "show"ing a full screen image without hiding dialog window?

#5 Post by edgebug »

viewtopic.php?t=17001

this might work for you.

edgebug
Regular
Posts: 41
Joined: Thu Jun 30, 2016 11:44 pm
Contact:

Re: "show"ing a full screen image without hiding dialog window?

#6 Post by edgebug »

viewtopic.php?t=8727

or this? they're pretty old topics but they might do it.

User avatar
AVNSnax
Regular
Posts: 79
Joined: Sun Feb 06, 2022 12:11 am
itch: avnsnax
Contact:

Re: "show"ing a full screen image without hiding dialog window?

#7 Post by AVNSnax »

edgebug wrote: Mon May 23, 2022 11:30 pm viewtopic.php?t=17001

this might work for you.
Thanks edgebug! That did it. I looked at $ renpy.transition briefly but went down a rabbit hole with show expression and forgot to swing back around to it.

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

Re: "show"ing a full screen image without hiding dialog window?

#8 Post by Imperf3kt »

You could potentially add show window with None
None being the transition to use, which being "None" will force it to use no transition at all
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
AVNSnax
Regular
Posts: 79
Joined: Sun Feb 06, 2022 12:11 am
itch: avnsnax
Contact:

Re: "show"ing a full screen image without hiding dialog window?

#9 Post by AVNSnax »

Imperf3kt wrote: Tue May 24, 2022 10:18 pm You could potentially add show window with None
None being the transition to use, which being "None" will force it to use no transition at all
But I want the transition. That was the impetus for the discussion.

I ended up solving the problem by avoiding the high-level show command:

Code: Select all

init python:
    def immediateShowWithTransition(bkimg, transition):
        renpy.show(bkimg)
        renpy.transition(trans=eval(transition), layer="master")
. . .
define slowDissolve = Dissolve(3.0)
# show image1 with slowDissolve
$ immediateShowWithTransition('image1', 'slowDissolve')
Does the trick.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2400
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: "show"ing a full screen image without hiding dialog window?

#10 Post by Ocelot »

AVNSnax wrote: Fri May 27, 2022 9:52 am < pyton code >
If you have to write eval and you are not writing parser, you probably doing it wrong.
What was wronh with

Code: Select all

show image1 with {'master': slowDissolve} 
?
< < insert Rick Cook quote here > >

User avatar
AVNSnax
Regular
Posts: 79
Joined: Sun Feb 06, 2022 12:11 am
itch: avnsnax
Contact:

Re: "show"ing a full screen image without hiding dialog window?

#11 Post by AVNSnax »

Ocelot wrote: Fri May 27, 2022 12:33 pm
AVNSnax wrote: Fri May 27, 2022 9:52 am < pyton code >
If you have to write eval and you are not writing parser, you probably doing it wrong.
What was wronh with

Code: Select all

show image1 with {'master': slowDissolve} 
?
Well, none except that I didn't realize that that syntax was possible. That's why I asked in the first place? Thanks.

Post Reply

Who is online

Users browsing this forum: Google [Bot], mirceea