"show"ing a full screen image without hiding dialog window?
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.
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.
"show"ing a full screen image without hiding dialog window?
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.
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.
Re: "show"ing a full screen image without hiding dialog window?
i think that if you put "window show" before the sequence, the window will keep on screen
like...
that SHOULD do the trick :3
like...
Code: Select all
window show
show whatever
"text text text{nw}"
show whatever
extend "more text more text more text"
Re: "show"ing a full screen image without hiding dialog window?
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)).
Re: "show"ing a full screen image without hiding dialog window?
let me see if i can figure something out. one second
Re: "show"ing a full screen image without hiding dialog window?
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.
- 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?
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
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
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: "show"ing a full screen image without hiding dialog window?
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')
- 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?
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 > >
Re: "show"ing a full screen image without hiding dialog window?
Well, none except that I didn't realize that that syntax was possible. That's why I asked in the first place? Thanks.Ocelot wrote: ↑Fri May 27, 2022 12:33 pmIf 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}
Who is online
Users browsing this forum: Google [Bot], mirceea