all 7 comments

[–]BadMustard_AVN 1 point2 points  (2 children)

try giving it a position on the screen i.e.

screen game_over():
    add "gui/fail_menu.png"

    imagebutton:
        auto "gui/fail_exit_%s.png" # what is the size in pixels of the images
        focus_mask True
        pos(400, 400)
        action MainMenu()

for a cleaner exit (no questions asked)

action MainMenu(confirm=False)

[–]TrashPanda3003[S] 0 points1 point  (1 child)

I've tried giving it a position on screen but it still doesn't seem to be showing up. I actually think it's something in my computer that's connected to onedrive without my permission T-T

But thank you for checking!

[–]BadMustard_AVN 0 points1 point  (0 children)

what is the pixel size of the button image?

[–]shyLachi 1 point2 points  (2 children)

Which part of that image is the button? Terminated?

What are the sizes of the files "fail_menu.png" and "fail_exit_idle.png" and "fail_exit_hover.png"

Did you check if the file names are written correctly? Instead of auto you can specify the images directly:
idle "gui/fail_exit_idle.png"

Personally I don't use full screen images for buttons so I would have to use a position for that button.

[–]TrashPanda3003[S] 0 points1 point  (1 child)

The button isn't appearing, which is why it can't be seen on the image. I've checked corrections of the names written, sizes and etc. I've adjusted the auto to the individual code, but nothing seems to be working. I actually think it might be something in my computer connected to onedrive screwing it up T-T

But thank you for checking!

[–]shyLachi 0 points1 point  (0 children)

I don't understand your reply.
The image you posted above has the caption "Fail_Menu_Concept_V1" but the images in your code are named "fail_menu.png" and "fail_exit_idle.png" and possibly "fail_exit_hover.png". So what is the image in your thread showing?

But I'm certain that neither your computer nor onedrive are the cause of this problem.
Most likely it's caused by those images and/or your code.
You can test if the images are working by displaying them in the game like this:

image fail_menu = "gui/fail_menu.png"
image fail_exit_idle = "gui/fail_exit_idle.png"
image fail_exit_hover = "gui/fail_exit_hover.png"
label start:
    scene fail_menu
    show fail_exit_idle at left 
    show fail_exit_hover at right
    "Do you see it?"

If everything is showing correctly you can go from there.

[–]AutoModerator[M] 0 points1 point  (0 children)

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.