For my current visual novel project, my goal is to have a scene that involves a repetitive action. I essentially need 2 frames of animation, sort of a before/after state, and I am aiming for this to be its own separate scene/background, not character sprites.
I'm having a little trouble understanding how to transition back and forth between a scene as shown in the renpy tutorial. The code from the tutorial would work:
Code: Select all
image bg atl transitions:
"bg washington"
"bg whitehouse" with dissolve
pause 1.0
"bg washington" with dissolve
pause 1.0
repeat
Except I clearly don't understand how this functions, because every time I've tried to implement it, my game just skips this entire block. The parts I do understand are the pause lines and the repeat.
I declare two separate backgrounds in my script:
Code: Select all
image frame1= "images/bg frame1.png"
image frame2= "images/bg frame2.png"
Swapping out frame1/2 with "bg washington"/"bg whitehouse" doesn't work. I assume since these were strings that they are directly referencing image names, so I tried putting in my image names (bg frame1.png) into the quotes, and still nothing. Can someone assist me in understanding this?