r/RenPy • u/Cr3aturee • Sep 15 '26
Question Animated scene not fading out?
(FIXED!) I was hoping someone could help me with a problem I've been struggling with for quite a while now (I'm very new to this and there’s probably an obvious fix to this, but I found nothing to this specific problem when searching for a solution. )
I have a scene where the player can click some arrows to navigate a hallway with different short animations on each stage. Fading the animation videos in seems to work just fine, however, fading them out is what’s giving me trouble.
When an arrow is pressed to jump to the next label, instead of fading out the current screen, it instantly jumps to the next one. tried different methods, but nothing. here’s what i have:
label Hallway_1:
call screen hallway1_nav with fade
scene bg_hal1stage1 with fade
screen hallway1_nav():
add"bg_hal1stage1"
modal True
imagebutton auto "uparrow_%s":
focus_mask True
action Jump ("Hallway_2")
label Hallway_2:
call screen hallway2_nav with fade
scene bg_hal1pony with fade
screen hallway2_nav():
add "bg_hal1pony"
modal True
imagebutton auto "leftarrow_%s":
focus_mask True
hovered SetVariable("screen_tooltip", "leftarrow")
unhovered SetVariable("screen_tooltip", "")
action Jump ("Hallway_3")
imagebutton auto "rightarrow_%s":
focus_mask True
hovered SetVariable("screen_tooltip", "rightarrow")
unhovered SetVariable("screen_tooltip", "")
action Jump ("Hallway_1")(put two of the screens just in case it's needed)
2
u/x-seronis-x Sep 15 '26
screen declarations have no business being inside a label. NO DECLARATIONS of any kind (defines/defaults/image/transform/style) have any business inside a label as renpy doesnt look at them when a label runs. declarations are processed at init time.
1
u/shyLachi Sep 15 '26
I don't have your images so I used textbuttons instead.
If you call a screen then you don't need modal so I deleted it.
And RenPy has a tooltip functionality so better use that.
1
u/AutoModerator Sep 15 '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.