image Onlayer on game menu fix?

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
cmk_
Newbie
Posts: 16
Joined: Fri Dec 11, 2020 11:03 am
Tumblr: crowneavn
Contact:

image Onlayer on game menu fix?

#1 Post by cmk_ »

So whenever I click options or save/load screen my character that uses "show m_neutral at onlayer ml" is on top of the screen and it's blocking the return button. how to make it overlap everything except the game menu screens?

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: image Onlayer on game menu fix?

#2 Post by Alex »

Why did you put this character on layer that is higher than 'screens'-layer? Didn't it overlap your game's gui?
If you need it to overlap your gui but not the menus, try to make another layer and show bgs and sprites on 'master'-layer, your gui screens on that another layer, your character on 'ml'-layer that must be lower than 'screens'-layer.

cmk_
Newbie
Posts: 16
Joined: Fri Dec 11, 2020 11:03 am
Tumblr: crowneavn
Contact:

Re: image Onlayer on game menu fix?

#3 Post by cmk_ »

Alex wrote: Thu Dec 17, 2020 1:34 pm Why did you put this character on layer that is higher than 'screens'-layer? Didn't it overlap your game's gui?
If you need it to overlap your gui but not the menus, try to make another layer and show bgs and sprites on 'master'-layer, your gui screens on that another layer, your character on 'ml'-layer that must be lower than 'screens'-layer.
sorry, i'm quite the noob. would you elaborate? TT

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: image Onlayer on game menu fix?

#4 Post by Alex »

cmk_ wrote: Fri Dec 18, 2020 11:37 am ...
Mmm, you've said that you show your character like "show m_neutral at onlayer ml" - why do ou show it on layer 'ml'?
Is there any special purpose? Otherwise show it like

Code: Select all

show m_neutral

cmk_
Newbie
Posts: 16
Joined: Fri Dec 11, 2020 11:03 am
Tumblr: crowneavn
Contact:

Re: image Onlayer on game menu fix?

#5 Post by cmk_ »

Alex wrote: Fri Dec 18, 2020 12:00 pm
cmk_ wrote: Fri Dec 18, 2020 11:37 am ...
Mmm, you've said that you show your character like "show m_neutral at onlayer ml" - why do ou show it on layer 'ml'?
Is there any special purpose? Otherwise show it like

Code: Select all

show m_neutral
well it's because it's a protagonist side image and it needed to overlap the textbox. I couldnt use the side image from renpy tutorial because the name of the protagonist is a renpy.input [name] and it's also a conditional switch between male and female sprite depending on what you choose. I couldn't figure out the side image code for that so I decided to go with onlayer ml. my only purpose is to overlap the textbox

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: image Onlayer on game menu fix?

#6 Post by Alex »

Try it like:

Code: Select all

define mc = Character("[my_char_name]", image="my_char")

image my_char normal:
    Solid("#00c")
    size(350, 650)
    
image my_char happy:
    Solid("#c0c")
    size(350, 550)
    
image side my_char normal:
    Solid("#00c")
    size(250, 350)

image side my_char happy:
    Solid("#c0c")
    size(250, 350)
    
# The game starts here.
label start:
    show my_char normal
    $ my_char_name = renpy.input("Enter your name:", default="???", length=10)
    "Hello, [my_char_name]."
    mc happy "Hello!.."
    show my_char at right with move
    mc normal "...World?"
    "~~~"
https://www.renpy.org/doc/html/dialogue.html

cmk_
Newbie
Posts: 16
Joined: Fri Dec 11, 2020 11:03 am
Tumblr: crowneavn
Contact:

Re: image Onlayer on game menu fix?

#7 Post by cmk_ »

ohh you're right, i should've just gone with the default instead of onlayer ^^ thanks

Post Reply

Who is online

Users browsing this forum: No registered users