• To improve security, we will soon start forcing password resets for any account that uses a weak password on the next login. If you have a weak password or a defunct email, please update it now to prevent future disruption.

Renpy slideshow on screen

Cohibozz

Member
Aug 14, 2018
125
27
I be to do a slideshow on screen to show 3-4 image ( automatic or onclick)

I ve found on lemmasoft this example
Code:
init:
    image sldsw:
        "#445"                       #color in HEX
        2.9                          #pause (seconds)
        "#122" with dissolve       #dissolve (or fade) transition (not necessarily)
        2.7
        "#7f7" with fade
        1.2
        repeat
        
label start:
    scene sldsw
    "You've created a new Ren'Py game."
    "Once you add a story, pictures, and music, you can release it to the world!"

    return

It a a good example or something better I can use inside screen?
 

Milvidi

Member
Game Developer
Feb 26, 2018
199
481
Yes, it's good. I think the post right below that explained everything well enough.
 

Porcus Dev

Engaged Member
Game Developer
Oct 12, 2017
2,582
4,687
I be to do a slideshow on screen to show 3-4 image ( automatic or onclick)

I ve found on lemmasoft this example
Code:
init:
    image sldsw:
        "#445"                       #color in HEX
        2.9                          #pause (seconds)
        "#122" with dissolve       #dissolve (or fade) transition (not necessarily)
        2.7
        "#7f7" with fade
        1.2
        repeat
       
label start:
    scene sldsw
    "You've created a new Ren'Py game."
    "Once you add a story, pictures, and music, you can release it to the world!"

    return

It a a good example or something better I can use inside screen?
Do these images have to be repeated?

If not, you can use this:
Code:
scene image_1
pause
scene image_2
pause
scene image_3
pause
This is for "onclick", if you need to slideshow change "pause" for "$ renpy.pause(1.0, hard=True)" where 1.0 are 1 second, ajust at your taste.
And if need some effects for images, you can use "with dissolve", "with fade", etc... after image name, ex: "scene image_1 with fade"

If you need to be repeated:
Code:
scene repeat_scene1:
     scene "image_1.png"
     $ renpy.pause(1.0, hard=True)
     scene "image_2.png"
     $ renpy.pause(1.0, hard=True)
     scene "image_3.png"
     $ renpy.pause(1.0, hard=True)
     repeat
For effect, same as above.
Only keep in mind that in that case, if your renders aren't in images folder, you need to specify the path, ex: if you have your images in a folder called chapter1 inside images folder, then put this: "scene "chapter1/image_1.png" (As you see, you need to specify the extension too).
 
  • Like
Reactions: anne O'nymous