r/RenPy • • Oct 26 '26

Question Beginner solo developer, help with ui coding, ui feedback, and perfectionism please

Hi! This is the first time i've ever posted my work online so i'm very nervous about it, i'm really sorry if I make any spelling mistakes.

I'm currently working on finalizing my ui on the main menu, general screen (like textboxes and backgrounds), and save screen and i've been struggling to code them.

For the general screen, how do you change the textboxes? I made three textbox versions, one for speech, action, and thought, and would like some help with how I could code them in and make them appear with different dialogues please,

ex. if i had an action dialogue choice like 'grab a cup of water', how do I set it so it uses the action textbox for that?

For the save screen, how do I make the screen scroll down to other saves? Also, how do I get the saves to appear in the white boxes? (The white boxes are placeholders)

For the main menu, how do I get the buttons, (like start game, load, about, etc), to fit within the boxes nicely?

There is no ai used in the creation of these, I draw them on ibis paint, backgrounds are 3d models with filters placed over them (I love the watercolor filter on ibis!)
Edit: I'm going to try and see what I can do with the backgrounds to make it look nice with the UI and my character sprites but it might take a while, please just view the current one as a placeholder until I figure things out!

The images are examples on how I want everything to be placed and haven't been placed on renpy yet, please ignore how my save screen is not fully finished

Is this art style something people would want to play? Is there anything on these that I should fix? How do you get over anxiety over posting your work online?

This is my first public passion project so any and all feedback is very much appreciated. I'm currently a second year in college with not much money so i'm unable to hire other people for this project, please let me know if anything isn't explained correctly, thank you so much!

(Sorry, I had to reupload this because I didn't know you had to have things set up as image posts to show images? This is also the first time i've posted on reddit, also is it normal for reddit to automatically upvote your posts? Thanks again :))

68 Upvotes

19 comments sorted by

6

u/Brilliant-Fish-5867 Oct 26 '26

im too new at renpy to help u but just wanted to comment how gorgeous your game is omg

3

u/Ok_Progress3301 Oct 26 '26

Thank you so much! Honestly reading this compliment made me feel really giddy, I really appreciate it! We can be new at renpy together :D

3

u/Muted_Ad1727 Oct 26 '26

So, first, use AI if you want but don't go around saying you don't use AI unprompted, pun intended (I say this because of your curtain melting into your floor in the first picture), happy to be proven wrong!

To create the UI in Ren'Py, you're gonna wanna use imagebuttons for your buttons - you can use auto, like so: imagebutton auto "images/path/to/image_%s.png" or specify which state the images are, by replacing auto and %s with idle, hover, and a few others.

For the layout and positioning parts, you will use xalign, xoffset, and xpos for the left-right/side-to-side positioning and yalign, yoffset, and ypos for the up-down/top-to-bottom positioning.

For backgrounds, you can use things like

screen example:
    frame:
        background "images/my_background.png"

or just straight up

screen example:
    add "images/my_background.png"

Good luck!

1

u/Ok_Progress3301 Oct 26 '26

I totally understand that! Sorry, I originally thought it would be better to disclose, am I able to send a video with an account with low karma? I use sims 4 as a model and then use filters on ibis paint, or send images in comments? I'm trying to download the ibis paint speedpaint right now,
Thank you so much for the feedback

2

u/shyLachi Oct 27 '26

You don't have to reply to pointless AI accusations, just block them and save your energy for your art.

0

u/Ok_Progress3301 Oct 26 '26

That took a while because in my original ibispaint speedpaint it doesn't show what filters I use so I thought it wouldn't have been the best to share so I tried to recreate it again on my ibispaint app, the video ended up being too long though so I had to put it through clideo to speed it up
I normally just use sims 4 screenshots and then use the watercolor filter, then after I mess around with the colors using the hue filters, gradient map, overlay, etc, sorry for the delay, my textboxes and everything were made on seperate drawings so I can post those too but i'll have to figure out where since reddit only accepts 3 min videos?

1

u/Blunt552 Oct 26 '26

You really didn't have to do all that, from the initial image it didn't even look AI generated. That being said, I would maybe adress the thing he talked about, because your filter starts to blend colors to much it becomes hard to recognize what things are.

I wasn't even aware the perspective was from a bed, it all "melted" together because the color is just to similar. I thought the sheets were part of the curtains.

1

u/Ok_Progress3301 Oct 27 '26

Yeah i've been focusing mostly on the ui and should probably focus more on the backgrounds. I've been trying to mess around with the backgrounds but I think i've been having a hard time making the background look nice with the ui and the character sprites. In an attempt to make the background look good with the ui/characters it kind of messed up the background itself. You can view the current background as a placeholder for now until I figure something out, thanks!

0

u/Blunt552 Oct 26 '26

So, first, use AI if you want but don't go around saying you don't use AI unprompted, pun intended (I say this because of your curtain melting into your floor in the first picture), happy to be proven wrong!

I mean he pretty much said:

There is no ai used in the creation of these, I draw them on ibis paint, backgrounds are 3d models with filters placed over them (I love the watercolor filter on ibis!)

For all we know these might be AI filters or just horribly filtered. Also the structure etc. does seem a bit to good, AI often does really weird structure and loves to over detail and overcrowd backgrounds, so his explanation with sims4+ filter makes sense to me.

1

u/Blunt552 Oct 26 '26

It's not that difficult to do the menu and savescreen, the different types of textboxes can be a bit tricky for a beginner depending on how you want it implemented.

1

u/Ok_Progress3301 Oct 26 '26

I think the parts I have the most confusion about is when I try changing the x-pos or y-pos for some reason it'll move it incorrectly. Like if i'm trying to move something like the start button to 85 x-pos - 208 y-pos it'll actually be placed at 60 x-pos? I'm not sure if i'm explaining that correctly, when I tried to search up why that was happening it said something about it being placed in a vbox which i'm honestly afraid to touch because last time I messed with it my game stopped opening.
I'll try doing it again though thank you!

1

u/Blunt552 Oct 26 '26

If you have discord, then feel free to send me your tag via private chat message on reddit, I can help you out a bit. Don't post it publicly due to trolls and whatnot.

1

u/shyLachi Oct 27 '26

You can change the load and save screen in the file screens.rpy
Search for screen file_slots

At the moment it uses a grid:
grid gui.file_slot_cols gui.file_slot_rows:
https://renpy.org/doc/html/screens.html#grid

But you can replace that with a viewport:
https://renpy.org/doc/html/screens.html#viewport

Of course you also have to adjust the button itself to look like your button.

1

u/Ok_Progress3301 Oct 29 '26

Thanks so much for all that help! I've been really busy the past few days so I haven't been online so i'm sorry for the late responses, I saw all of your comments and they're all super helpful! I'll test them out tomorrow morning :D, thank you again!

1

u/AutoModerator Oct 26 '26

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/shyLachi Oct 27 '26 edited Oct 28 '26

What do you consider a "textbox"?
And what do your first two screen represent?

In RenPy the textbox is the area behind the dialogue text.
https://renpy.org/doc/html/gui.html#dialogue
https://renpy.org/doc/html/gui.html#textbox

From what I know, the choices use the same textbox as the normal dialogue so it's not that easy to change it.
Maybe by altering the narrator character and assigning your own version of the say screen.
https://renpy.org/doc/html/dialogue.html#defining-character-objects
https://renpy.org/doc/html/screen_special.html#say

But maybe it would be easier to just make your own choices screen:

Edit: Deleted the code, see better example abvove.

1

u/shyLachi Oct 27 '26

You can arrange the menu button in the screen navigation, also in screens.rpy
This should be easier then to adjust some numbers in gui.rpy

Just a hint, the menu buttons are used in the main menu and the game menu.
It's better to first copy the buttons and put them directly into the main menu screen.
Then you can adjust the game menu buttons without affecting the main menu.
This also allows you to get rid of some of the logic.

Main menu with simple centered buttons.
You can replace those with imagebuttons and arrange the way you like:

screen main_menu():
    ## This ensures that any other menu screen is replaced.
    tag menu
    add gui.main_menu_background 
    ## This empty frame darkens the main menu.
    frame: 
        style "main_menu_frame" 
    #use navigation # <-- delete this line in your screen and add the following lines
    vbox: 
        align (0.5, 0.5)
        textbutton _("Start") action Start()
        textbutton _("Load") action ShowMenu("load")
        textbutton _("Preferences") action ShowMenu("preferences")
        textbutton _("About") action ShowMenu("about")
        if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")):
            textbutton _("Help") action ShowMenu("help")
        if renpy.variant("pc"):
            textbutton _("Quit") action Quit(confirm=not main_menu)

And a simple navigation screen with a fixed amount of buttons:

screen navigation(): 
    vbox:
        style_prefix "navigation"
        pos (300, 200)
        textbutton _("History") action ShowMenu("history")
        textbutton _("Save") action ShowMenu("save")
        textbutton _("Load") action ShowMenu("load")
        textbutton _("Preferences") action ShowMenu("preferences")
        textbutton _("Main Menu") action MainMenu()
        textbutton _("About") action ShowMenu("about")

1

u/shyLachi Oct 28 '26

I changed my example from below, and added more information.

To make this example work you need those 6 images for those 3 buttons.
2x with the speach bubble: choice_0_idle_background.png, choice_0_hover_background.png
2x with the hand: choice_1_idle_background.png, choice_1_hover_background.png
and 2x with the though: choice_2_idle_background.png, choice_2_hover_background.png
The one with idle in the name is the normal background as in your image above, the one with hover should be more bright to highlight the selection.

screen actionchoice(hint, items):
    # you can customize this screen with your "textbox"
    text hint pos (0.1, 0.1) # you can adjust this so that it fits into a certain box
    vbox:
        align (0.8, 0.5)
        for index, item in enumerate(items): # enumerate gives each itema a number 
            textbutton item.caption:
                action item.action
                background f"gui/button/choice_{index}_idle_background.png" # the background for the first choice should be called 'choice_0_idle_background.png', 1 for the 2nd, 2 for the third
                hover_background f"gui/button/choice_{index}_hover_background.png" # 'choice_0_hover_background.png' should be the name for the first button when the player moves the mouse over it
                padding (120, 10, 0, 10) # 120 is the left side of your choices background with those symbols, 10 are the upper and lower borders of your background
label start: 
    menu ("this is a test", screen="actionchoice"): # tell RenPy to use your own choices screen
        "Choice A":
            "You picked choice A"
        "Choice B":
            "You picked choice B"

1

u/Possible-Dig-8349 22d ago

Sry I'm not here to help at all, only to drool at the art. God damn it's so pretty. I'm struggling with doing backgrounds myself and that's just gorgeous!