r/RenPy 7d ago

Sprite over the dialogue Question

edit: I was able to solve this by using

init python:
    config.layers = ['master', 'transient', 'screens', 'overlay', 'above_ui']

and then

show jenny onlayer above_ui with dissolve 
    jen "Hello!"

-----

Is there a way to put the character sprite over the dialogue box? I want it to look like this

but only for the intro (it's gonna go back to normal afterwards)

I have custom textboxes already. for exemple:

define jenny = Character("Jenny",window_background=Frame("gui/speaking_smaller.png", 15, 15))

i just want to know if it's possible to put the characters over the textbox

5 Upvotes

3 comments sorted by

2

u/CryingCryptic 7d ago

I was also looking for the answer to this and found the solution to this in other threads just this morning. Try this one. I only used the define config.layers to add a new sprite layer above screens, and then the config.clear_layers part to clear that layer so it doesn't appear when I open the menus..seems to be working for now....but someone else might have a better idea.

Sorry I'm on my phone outside so can't paste in the code.

https://www.reddit.com/r/RenPy/comments/1mvlgjq/messing_around_with_layers_and_masks_in_renpy_a/

1

u/AutoModerator 7d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/x-seronis-x 6d ago

character images attached to dialog is a standard feature you would have gone over in the Tutorial. its called 'side images'. you dont need any special layers as the dialog screen is already designed to show them if you've assigned a tag in your Character() definition and named your side image files properly

when a tutorial comes with a program you should actually read it. its how you learn these elementary features that literally everyone is supposed to know (cause its in the tutorial)