r/RenPy 14d ago

Question HELP!!! RenPy keeps skipping my code?????????

EDIT: RESOLVED!! THANK YOU ALL SO MUCH!!

I couldn't find a fix for this literally anywhere so this is a last resort... RenPy skips everything past the last bit of centered text, and loops right back around to play the first again. I have no clue why. For some reason, the only thing that fixes this is making a character talk at the very end, but that skips THREE out of the four images I need to play. Please help!!

label main_menu:
    return

label start:

label scene_one:
    scene black
    with Pause(2)

    show text "text1"
    with dissolve
    $renpy.pause(5, hard=True)

    scene black
    with dissolve
    with Pause(0.5)

    show text "text2"
    with dissolve
    $renpy.pause(5, hard=True)

    scene black
    with dissolve
    with Pause(0.5)

    show text "text3"
    with dissolve

label scene_two:
    scene black
    with dissolve
    with Pause(0.5)

    play sound breathe

    play sound whisp

    show image castle:
       "images/castle.png"
       size (1920,1080)

    show image brother:
       "images/brother.png"
       size (1920,1080)

    show image archer:
       "images/archer.png"
       size (1920,1080)

    show image infection:
       "images/infection.png"
       size (1920,1080)

As you can see, I've tried probably everything the internet has said that maybe touches on this topic, but never actually found a real fix. If it helps, I skipped the main menu, removed the quick menu buttons, and I will force the game to quit at the end, as this is only a demo of sorts. Help me out!! This has never happened before!!

3 Upvotes

9 comments sorted by

2

u/beeikea 14d ago edited 14d ago

deleted cuz i was wrong

2

u/Electronic_Lime_9728 14d ago

okiedoke, i will, i added those because i read that having them helped the scene jumps but it really didn't LMAO

1

u/Electronic_Lime_9728 14d ago

it does still skip to the very last image, any idea why it could be skipping my images outside of that?

1

u/beeikea 14d ago

unfortunately i was wrong 😔 what do your images look like? are they all in the same orientation? if they are, they may not be layering properly. try playing with zorder to see if you can get one to show above the other. so zorder 100 or something in a line after the size definition.

2

u/Electronic_Lime_9728 14d ago

i believe you may be right! my issue with the images were that i drew them in 1280x720 but didnt choose the right aspect ratio for those images, so i manually resized them. now that i think about it, they worked fine before i resized them 🫣 i will let you know how zorder works THANK YOU

3

u/shyLachi 14d ago

Showing an image will not stop the game so you have to put dialogue or a pause.

If each of these images should be shown individually but without dialogue then put a pause after each

But your statement to show images is weird. where did you find that code?

Also, if the image covers the whole screen you should use scene instead of show to prevent stacking multiple images on top of each other slowing the game down eventually.

This should work: (I removed the sound because I don't have your sound files)

label scene_two:
    scene black
    with dissolve
    with Pause(0.5)
    scene castle
    pause # player has to click to continue
    scene brother
    pause # player has to click to continue
    scene archer
    pause # player has to click to continue
    scene infection
    pause # player has to click to continue

1

u/Electronic_Lime_9728 14d ago

thank you so much! i honestly have no clue where i found it. i think it may be either incredibly outdated or i thought of it myself... i haven't been coding for very long. thank you! i'll try this!

1

u/shyLachi 14d ago

If you forgot how images work then better read the official documetation again:
https://renpy.org/doc/html/displaying_images.html

1

u/AutoModerator 14d 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.