New GUI interface, side image appears under textbox?

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.
Message
Author
User avatar
Milkymalk
Miko-Class Veteran
Posts: 753
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

Re: New GUI interface, side image appears under textbox?

#16 Post by Milkymalk »

You can use transitions with the "with" statement: "add sideimage [...] with dissolve"

If you want the "side image" to stay even when the character is not talking, you don't need a side image. In effect, you just want to show an image above the say screen, which you can achieve by using a layer above the screen layer. I would have to look up how to do it myself, but it's relatively easy if you follow the docs: Register a layer above the screen layer and tell Ren'Py to show this specific image on that specific layer instead of the standard layer.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

User avatar
Katz_Drawings
Newbie
Posts: 4
Joined: Thu Jun 08, 2017 8:25 am
Projects: [it's a secret!]
Tumblr: katz-drawings
Deviantart: katz-drawings
itch: katz_drawings
Location: UK
Contact:

Re: New GUI interface, side image appears under textbox?

#17 Post by Katz_Drawings »

Would something like this be what you're looking for? I haven't tested this sort of thing in particular, but I've used config.side_image_tag before.

Code: Select all

$config.side_image_tag = Null()
kana "something" #no side image
$config.side_image_tag = "kana"
kana "hi" #kana side image
tsugu "hi" #still with kana side image
$config.side_image_tag = "tsugu"
tsugu "hi" #tsugu side image
kana "hi" #still with tsugu side image
$config.side_image_tag = Null()
kana "hello" #no side image

Goldie28
Newbie
Posts: 15
Joined: Sat Aug 01, 2015 5:32 am
Location: South Korea
Contact:

Re: New GUI interface, side image appears under textbox?

#18 Post by Goldie28 »

Where can I put that code you suggested? I'm entirely unfamiliar to config. tags ;-;

Goldie28
Newbie
Posts: 15
Joined: Sat Aug 01, 2015 5:32 am
Location: South Korea
Contact:

Re: New GUI interface, side image appears under textbox?

#19 Post by Goldie28 »

Milkymalk wrote: Sat Jul 29, 2017 10:52 pm You can use transitions with the "with" statement: "add sideimage [...] with dissolve"

If you want the "side image" to stay even when the character is not talking, you don't need a side image. In effect, you just want to show an image above the say screen, which you can achieve by using a layer above the screen layer. I would have to look up how to do it myself, but it's relatively easy if you follow the docs: Register a layer above the screen layer and tell Ren'Py to show this specific image on that specific layer instead of the standard layer.
Do you by chance know how I could arrange the layers for a non-side image to appear over the textbox like a side image, as you suggested?

User avatar
Milkymalk
Miko-Class Veteran
Posts: 753
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

Re: New GUI interface, side image appears under textbox?

#20 Post by Milkymalk »

I'd have to look it up myself, but it's rather simple:

https://www.renpy.org/doc/html/displayi ... html#layer
https://www.renpy.org/doc/html/config.h ... fig.layers

You could make a user-defined layer or just use the layer "overlay". You use "onlayer LAYER" as an argument for the show statement you want to appear there.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

User avatar
Katz_Drawings
Newbie
Posts: 4
Joined: Thu Jun 08, 2017 8:25 am
Projects: [it's a secret!]
Tumblr: katz-drawings
Deviantart: katz-drawings
itch: katz_drawings
Location: UK
Contact:

Re: New GUI interface, side image appears under textbox?

#21 Post by Katz_Drawings »

Goldie28 wrote: Tue Aug 01, 2017 4:24 pm Where can I put that code you suggested? I'm entirely unfamiliar to config. tags ;-;
Sorry it took so long to reply, but as long as you use the $ sign before the config. tag you should be able to simply change it at will during the script.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]