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.
So I have these two characters moving at the same time, then the images are suppose to switch before moving off screen. It's suppose to be like the two girls are running into each other. But the code isn't using the "shocked" images, it's only using the "normal" ones. When the characters hit the middle the "normal" ones move down. the "shock" ones very show up. What going on?
show karanormal2 at center
show lillynormal2 at center
with move
hide karanormal2
hide lillynormal2
show lillyshock2
show karashock2
hide lillyshock2
hide karashock2
with moveoutbottom
Completed: Dreams of the Skies, Anton's Vacation, Luka, The Halberd and The Tiger, Rising Angels, Pyrite Heart, Rising Angels: Reborn, The Halberd and The Fox, VN Tycoon, RA: Hope
show kara normal2 at center
show lilly normal2 at center
with move
show lilly shock2
show kara shock2
hide lilly shock2
hide kara shock2
with moveoutbottom
Right now, renpy doesn't know that the normal and shock images are related to each other. By putting the space in there, you're telling it that it is a kara/lilly image. When you call another kar/lillya image, it realizes that it needs to change the current kara/lilly image on screen. There's no need to hide them since it is replacing the kara/lilly image.
It's because the transition is being applied to all the show/hide statements above it other than the initial show. You could break it up by adding a pause 0.1 after the show shock statements.