Label as main menu background
Posted: Tue Mar 19, 2024 6:19 pm
I have this label on my script file, basically it works as a gallery of pictures with some transitions added to it. I want to put this as the main menu background. Any idea on how I could do this?
Code: Select all
label menuCarruselTest:
$numPoster=renpy.random.randint(1,cantImgMainMenu)
#Si es el que acaba de salir sortea denuevo
if numPoster==numAnterior:
jump menuCarruselTest
$numAnterior=numPoster #guardo cual fue el que salio
$numPosterstr="[numPoster]" #lo convierto a string
$imagenAMostrarMM="MainMenuPresent/Poster-"+numPosterstr+".png" #arma la imagen a mostrar
show image (imagenAMostrarMM) at MMTransicion
$ renpy.pause(5.0, hard=True) #para hacer una pausa, y el hard es para que no se la salteen
scene black
with dissolve
$contadorAlPedo=contadorAlPedo+1
if contadorAlPedo==1000:
return #sale del programa, es para evitar un loop infinito
else:
jump menuCarruselTest