It's pictures diaporama with a light zoom/unzoom effect on it and wich are fading out/ fading in from a list. All of my pictures are jpg and are already set up to be use one by one (I mean there is a blackbackround but it's part of the jpg picture). And all the pictures are more than 1920x1080 in order to avoid seing the transparent border when zooming out.
(For the one of you who are familiar with Skyrim, i'm doing exactly the same thing than the loading screen of this game)
So I've based my work on an already existing code (like always, i'am a fucking code scavenger remember) and I want to get rid of a part which is destinated (I guess) to work with multiple pictures (png probably) moving on the same screen (like 2 characters and the background). But since I only have one pictures moving at the same time I would like to simplify it but don't exaclty know how.
And what I want to keep is a specific "transform" effect for each pictures.
I've tweak some stuff take a look :
Code: Select all
init:
$ menu_dark_1 = ["images/0.0 - Game MenuDark_Right_CH1_1.jpg", 0.6]
$ menu_dark_2 = ["images/0.0 - Game MenuDark_Right_CH1_2.jpg", 0.6]
$ menu_dark_3 = ["images/0.0 - Game MenuDark_Right_CH1_3.jpg", 0.6]
$ menu_dark_4 = ["images/0.0 - Game MenuDark_Right_CH1_4.jpg", 0.6]
$ menu_dark_4 = ["images/0.0 - Game MenuDark_Right_CH1_5.jpg", 0.6]
$ menu_arr = [menu_dark_1, menu_dark_2, menu_dark_3, menu_dark_4, menu_dark_5]
$ renpy.random.shuffle(menu_arr)
Code: Select all
screen main_menu_dark:
add "#000000"
add spr_bg
Code: Select all
transform main_menu_dark_1:
on show:
xpos -116
zoom 0.5
linear 15.0 zoom 0.6 alpha 1.0
transform main_menu_dark_2:
on show:
xpos -200
zoom 0.6
linear 2.0 zoom 0.5295 alpha 1.0
transform main_menu_dark_3:
ETC....Here this is the part I want to get rid of cause I freaking don't understand arr[0][0] etc and I don't think this is necessary for my needs.
Code: Select all
init 499 image spr_bg:
menu_arr[0][0] with Dissolve(1.5, alpha=True)
zoom 0.6
xalign 0.0 yalign 0.0
linear 15.0 zoom menu_arr[0][1]
menu_arr[1][0] with Dissolve(1.5, alpha=True)
zoom 0.6
xalign 0.0 yalign 0.0
linear 15.0 zoom menu_arr[0][1]
repeat


