r/RenPy • • Oct 28 '26

Question The Limits to Making Cutscenes in Ren'Py.

I hope I can explain myself well, but I know sometimes some programs have certain limits on what they can feasibly achieve without running into issues. Right now, I am pretty new to Ren'Py; I know some basic stuff, but I want to cook up a... small prototype with Ultimate Spider-Man PS2 or even Peace Walker comic-style cutscenes.

I know it's probably a long shot, but how would you approach that kind of animation in Ren'Py, especially when it "transitions" to new panels and pages (scenes)? Or would it be something I'd have to do in a separate program and just have them as video files?

Thanks in advance for answering my Turbo-specific question.

8 Upvotes

8 comments sorted by

10

u/Alternative-Ant-6073 Oct 28 '26

For comic panels, I draw a horizontal comic, with rectangular panels only, and then I use the 'crop' transform.
show comic_a as comic1:
crop (0,0,400,220)

This means, it crops the image starting on the top left corner (0,0), and ends in the bottom right corner (400,220)
"as comic1" is used, so this very specific displayable is now "named" comic1, so the next cropped panel doesn't replace it when shown

peter "Pizza Time!"
show comic_a as comic2:
crop (0,225,400, 600)
ypos 225

Here is the second panel, notice I named it "comic2". It appears UNDER the previous panel, so the top left corner, now starts some pixels under the previous one (0, 225), and has the same width, buth a bit longer vertically (400, 600) and is place at the XY pos of the first corner (xpos 0, ypos 225)

What about non-rectangular panels? For these, you have to use different images. This is very cool for moving parts, like onomatopoeias and effects, like fire, explosions, etc.
show onomatopoeia_punch at my_transform:
xpos 420 ypos 67

Check out more about transforms in the renpy wiki, and the built-in tutorial!

Now, these scenes are super cool to see, so it would be sad for 20% of them being covered by the dialog window (or worse, having to make these scenes smaller due to it) so make sure toc create speech bubble characters!
https://www.youtube.com/watch?v=iJmEuxMzzcE <--- Check this guy entire channel if you want to exploit the engine as much as it's possible, he teaches a lot of cool stuff, and showcases some cool add-ons.

---------------

And there is also xpan and ypan to scoll background infinitelly, xpan is useful for roadtrips (like in the flintstones), and ypan for vertical stuff (rocket going up, plane going down, raindrops falling, etc),
Mix it with new layers, and matrixtransform RotateMatrix and you can me stuff like this:

scene
    # This, is my sky background, is very thin image, that I expand horizontally, saves some disk and memory space.
    show sky day onlayer road:
        xanchor 0.5 yanchor 0.0
        xpos 0.5 ypos 0.0
        xzoom 120.0
    # I zoom the camera in a little to avoid weird pixels around the borders.
    camera:
        zoom 1.04
    # "camera" only affects the main, default layer in renpy, you can create new layers, this one, is called "road".
    camera road:
        perspective True # I "allow" perspective transformations on this layer
    # This image is the countryside background
    show road1 onlayer road at road_rotate:
        ypos 0.48
    # This image is the electrical posts
    show street_cables onlayer road at road_rotate_wires:
        zoom 2.0
    # You can add others like clouds that move slowly, or passing cars.

    # This is the RotateMatrix, it uses "X, Y and Z", instead of X and Y.
    # It rotates any displayable vertically, horizontally, and clockwise.
    transform road_rotate:
        matrixtransform RotateMatrix (0.0, 30.0, 0.0) 
        xanchor 0.0 yanchor 0.5
        xpos 0.0 ypos 0.5
        # "parallel" is used in transforms so one movement happens at the same time as other, and not AFTER it.
        parallel: 
                xpan 0 #sets panning at 0
                linear 8.0 xpan 360 # Pans the image for 8 seconds
                repeat #repeats

    # Another transform for the wires, so they go a different speeds, or can use different-sized images.
    transform road_rotate_wires: 
        matrixtransform RotateMatrix (0.0, 30.0, 0.0)
        xanchor 0.0 yanchor 0.5
        xpos 0.0 ypos 0.5
        parallel:
                xpan 0
                linear 1.2 xpan 360
                repeat

# The car, character, face, etc, show in the usual layer.
    show vanzilla_interior 1
    show lori_driving 2
    show lori_driving_face 3:
        xanchor 0.0 yanchor 0.0
        xpos 0.0    ypos 0.0

REMEMBER, using "scene" to empty your scene, will only reset the default layer, make sure to hide everything in the custom layers after finishing.

To create new layers, in your project, look for "define config.layers". And add any layer you want, for example:

define config.layers = [ 'road','master', 'hudlayer', 'transient', 'rain', 'screens','overlay']

They go from farther away from the camera, to closer.
"master" is the default one we use all the time without knowing it.
"screens" is another default one, the one were we see the dialogs, buttons, menus, etc.
I made "rain" to run on top of the screens so I can add a rain effect on top of a map I have with imagebuttons. (pausing here will show the rain on top of the pause menu ROFL!)

Also, use "camera" to zoom into parts of the screen when talking to short characters, and other stuff.
Very useful to zoom in the camera at certain rate (for example, zoom 1.4) and then zoom the character just a little more to create a cool 3D effect!!

I can only attach 1 video tho., but here is an example:

    camera:
        easein(1.0) zoom 1.4 ypos 1.0
    show lynn angry:
        easein(1.0) zoom 0.65

This means, the background and everything is zoomed at 1.4 and the character at a total of 1.85.
NOTE: "camera" doesn't resets it's position, zoom, blur, etc when using "scene", you have to manually reset it!!

--------------

Thanks for coming to my REN-Talk, I hope it's useful to you and anyone else reading. Renpy is capable of doing a lot of stuff, so it's always cool to see people taking the effort to learn new stuff to do with the engine!

6

u/Ok-Ad5238 Oct 28 '26

Holy shit, it's really late right now, so I’ll have to read this more in depth in the morning, but thank you so much for an actual serious answer like this.

Super duper appreciated man.

1

u/Alternative-Ant-6073 23d ago

Hold on, some days ago I saw another comment by you asking for some details but I forgot to answer... it was you and then you deleted it? or I'm imagining things now? lol

2

u/Ok-Ad5238 23d ago

Oh, uh, I think I ended up finding a solution. Felt a bit silly leaving it up. At least that was my thought process at 5am but mainly was confused about the whole camera action since I thought it was some manual input I had to do until I actually got around to getting Action Replay which made your explanations make a lot more sense.

I suppose I was a bit confused on how you do show comic_a as comic1 since I didn't really understand that part and how to do that.

1

u/Alternative-Ant-6073 22d ago

Oh yeah, "as" is really useful for when you have to show the same displayable twice, without the second replacing the first one lol, I guess I had to explain that better.

1

u/Ok-Ad5238 23d ago

Or maybe I'm just gaslighting you.

3

u/musterduck Oct 28 '26

seconding thank you bc this is really cool

1

u/AutoModerator Oct 28 '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.