New GUI interface, side image appears under textbox?
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.
New GUI interface, side image appears under textbox?
Okay firstly I'm sorry if this is in the wrong thread as I never made a question post before.
So I made side images for some of my characters in my practice game but the side images appear under the textbox? (please see attachments) How can i fix this?
So I made side images for some of my characters in my practice game but the side images appear under the textbox? (please see attachments) How can i fix this?
- 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?
Did you mess with the say screen?
This is what it looks like by default. As the side image is added after the rest of the screen, it should be on top.
Code: Select all
screen say(who, what):
style_prefix "say"
window:
id "window"
if who is not None:
window:
style "namebox"
text who id "who"
text what id "what"
## If there's a side image, display it above the text. Do not display on the
## phone variant - there's no room.
if not renpy.variant("small"):
add SideImage() xalign 0.0 yalign 1.0
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Re: New GUI interface, side image appears under textbox?
I'm not sure where the say screen even is? is it in options?
- 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?
No, in screens.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Re: New GUI interface, side image appears under textbox?
my screens is untouched, looks exactly like what you quoted. How come my side image sprites still appear under the textbox?
- 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?
I honestly have no idea ... did you customize anything else? Anything at all, no matter what?
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Re: New GUI interface, side image appears under textbox?
I only customized the height of the text box a few times, as far as I remember. Everything else I'm not an expert with coding so i try not to touch unless i find a code in the forums that work 100%
- Donmai
- Eileen-Class Veteran
- Posts: 1960
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: New GUI interface, side image appears under textbox?
Are you defining and showing them as side images https://www.renpy.org/doc/html/side_ima ... ide-images
or are you simply using the show command to display them?
or are you simply using the show command to display them?
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Re: New GUI interface, side image appears under textbox?
I think I am defining the images as side images if this is what you mean (see picture below) here's how I put them into the game but they still show up under the textboxDonmai wrote: ↑Fri Jul 28, 2017 9:53 pm Are you defining and showing them as side images https://www.renpy.org/doc/html/side_ima ... ide-images
or are you simply using the show command to display them?
- Donmai
- Eileen-Class Veteran
- Posts: 1960
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: New GUI interface, side image appears under textbox?
I believe the problem is the show statement you are using to display the images. Try including the image in your character definition. There's an example on the documentation:
Code: Select all
define e = Character("Eileen", image="eileen")
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Re: New GUI interface, side image appears under textbox?
I adjusted the definitions as you suggested
what am I doing wrong??
and tried to show statement regularly
but this entirely just shows nothing even though I typed the defined image exactly the way I saved it, so it just shows this (kana is on the right in the photo to show how neither sprite appears)
what am I doing wrong??
- 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?
The "image" modifier for defining a character is to track a character's side image, not to define what the image is.
So, your code should be:
To show the side images, that character has to be speaking, so like:
Don't use the "show" statement to show side images.
So, your code should be:
Code: Select all
define Yuki = Character("Yukio", image="yuki")
define kana = Character("Kanae",image="kana")
define tsugu = Character("Tsugumi",image="tsugu")
image Yuki = "koyukio.png"
image kana = "Kanae.png"
image side kana = "Kana side.png"
image side tsugu = "tsugumi.png"
Code: Select all
Yuki "hi" #this would show no side image
kana "hello" #this would show kana's side image
tsugu "hi" #this would show tsugumi's side image
Re: New GUI interface, side image appears under textbox?
Thank you! It worked, but what about scenes where the speaking side character shouldn't be shown? For example in my script, character Kana is in her room while the view is the hallway outside her room, so the screen shows her son Yukio approaching her room.
I would like to hide the side image of Kana during her first line, then show her when the scene changes to her room when she says "what's wrong" and yada- SelLi
- Miko-Class Veteran
- Posts: 550
- Joined: Fri Apr 27, 2012 4:49 pm
- Completed: The Silent Column Demo, Memory Mage
- Projects: The Silent Column, A Lily from the Lightless Water, A Castle on an Island
- Deviantart: SelLillianna
- itch: SelLillianna
- Location: Canada
- Contact:
Re: New GUI interface, side image appears under textbox?
I'm not very good at code either, but you might just want to have two separate variables for Kana: one with a side image and one without one. That way you can just go between the two as you like.Goldie28 wrote: ↑Sat Jul 29, 2017 6:43 pm Thank you! It worked, but what about scenes where the speaking side character shouldn't be shown? For example in my script, character Kana is in her room while the view is the hallway outside her room, so the screen shows her son Yukio approaching her room.
8.jpg
I would like to hide the side image of Kana during her first line, then show her when the scene changes to her room when she says "what's wrong" and yada
Re: New GUI interface, side image appears under textbox?
I did that and it's satisfactory, but now my problem is that I would like the side sprite to stay on the screen whether the side sprite is talking or not, and only disappear when necessary such as the character leaves the room or until the scene ends. Also, is there possible ways of adding transitions to a side image? I'd most likely use only the shake effect and dissolve onto/out of screen.
Who is online
Users browsing this forum: Ocelot