Use RenPy to create a slideshow

BadgerBravo

Newbie
Nov 9, 2019
56
21
Hey All,

Just wondered how difficult it would be to learn RenPy to simple make a slideshow of zooms and pans of some images I have.
Basically just like the porn sections of some RenPy games, where the camera zooms and moves upon click?

I know it's easier to do something in say After Effects, I'd just like something more interactive and a smaller file size.

I'm wondering if RenPy would be able to do something like that and if I'd need coding to do this?

Cheers.
 

79flavors

Well-Known Member
Respected User
Jun 14, 2018
1,583
2,223
RenPy's solution to this is something called .

In effect, you give it a picture and let RenPy change how it's displayed from moment to moment.

The most common usage is to scroll from a girl's feet to her head by using a double height image by asking RenPy to pan from an anchor point at the bottom of the image to an anchor point at the top of the image, while altering nothing else.

There's a thread here with an example image and some example code, where I previously described how to pan the screen that way. I started with a simple example scrolling up from feet to head, but expanded it later to center the image (xalign 0.54), use an accelerating speed (easein) rather than static speed (linear) and paused to zoom into the girls chest briefly while panning up (pause and zoom).

These sort of simple manipulations are only the tip of the iceberg. You can have spinning images, multiple images moving in different directions... all sorts of stuff. But it seems like basic panning and zooming will fit your needs.

Based on your description, it sounds like you've want to create a series of animations (ATL), with the player clicking the mouse to advance from one to the next. Each animation would be a separate new ATL image: shown using scene, with a pause between each image. Really simple RenPy code. Only figuring out the ATL for each animation would be the challenging part.

The only issue I see is that players could click to advance before the animation is finished, which could kind of ruin the effect. One solution is to go "Sod them. If the player is doing stupid things... that's their problem". This is my preferred solution. However, the other solution... and I HATE that I'm going to suggest this... is hard pauses ( $ renpy.pause(3.0, hard=true) ), which would force the player to wait until the full animation has been shown. I HATE hard pauses in games, but perhaps this is one the few situations where they are needed - since this isn't really a game and more of a PowerPoint presentation.

I'd suggest just downloading the image from that other thread and copy/pasting some of the code from that thread too into a test RenPy project to see what it looks like... then match the movements back to the ATL code... then go read the ATL documention linked above... then write your own, using your own images.
 
Last edited:
  • Like
Reactions: anne O'nymous