Strange behavior, one scene showing the other not

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
JimPanse
Newbie
Posts: 11
Joined: Wed Apr 28, 2021 1:36 pm
Contact:

Strange behavior, one scene showing the other not

#1 Post by JimPanse » Thu Apr 29, 2021 9:39 pm

Ok guys, help me out here please cause it's driving me mad.

I have two image sets working as animations setup as in the code below.
The first animation is showing up perfectly fine, but the second is just skipped, although it's completely the same as the first animation, just slightly different image names.
Here's the code

Code: Select all

    label ch3_meg_mas:
    scene ch3megmas:
            "ch3/ani/ch3_meg_mas00.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas01.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas02.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas03.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas04.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas05.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas06.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas07.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas08.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas09.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas10.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas11.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas12.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas13.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas14.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas15.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas16.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas17.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas18.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas19.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas20.webp"
            pause 0.1
            repeat
    m "What the hell is going on here?!"

    label ch3meg_mas_top:
    ma "Holy fucking christ"
    scene ch3megmastop:
            "ch3/ani/ch3_meg_mas_top00.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top01.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top02.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top03.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top04.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top05.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top06.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top07.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top08.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top09.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top10.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top11.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top12.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top13.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top14.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top15.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top16.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top17.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top18.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top19.webp"
            pause 0.1
            "ch3/ani/ch3_meg_mas_top20.webp"
            pause 0.1
            repeat

    show mb_door as mbd02
    ma "Holy crap, what a sight."
The second scene is just skipped and goes straight to show mb_door.
Strange thing is, when I supplement scene ch3megmastop with fade or with dissolve, it shows up for a fraction of a second as if it wants to start and then just also goes straight to show mb_door.
Both scenes/animations codes are exactly the same except for different image names. Yet the first one works fine and the second one isn't showing up at all. Filenames are correct, image paths are correct. I don't get it.
Please help guys :(

JimPanse
Newbie
Posts: 11
Joined: Wed Apr 28, 2021 1:36 pm
Contact:

Re: Strange behavior, one scene showing the other not

#2 Post by JimPanse » Fri Apr 30, 2021 7:48 pm

Ok I found out what the problem was.
It seems like Renpy needs dialogue within a scene statement, otherwise it will just skip it.
As soon as I added some dialogue to the animation, it showed up just fine.
Don't know why dialogue is explicitly needed, but that's how it is it seems :)

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Strange behavior, one scene showing the other not

#3 Post by emz911 » Fri Apr 30, 2021 7:56 pm

I suspect “mb_door” is full screen so you cannot see “ch3megastop” is playing beneath it. What is happening is that the pauses within the animation does not pause the entire game, so once the scene is shown, it continues to the next line, which is the show image line (adding dialogue right after the scene works because it stops continuing to the next line until clicked). You may want to use hard pause and assign it a specific duration if you want the player to watch a bit of the scene.

Post Reply

Who is online

Users browsing this forum: No registered users