Page 1 of 1

Best way to jump to a label from the main menu?

Posted: Sat Oct 26, 2019 7:24 pm
by richycapy
Hi

Im creating a gallery for my game, however, since there will be images and movies, I cant use the BG Gallery from the forum
I already created a simple "screen" to see an image

Code: Select all

screen verfoto(pic=False):
    modal True zorder 10
    add 'images/splash/gi/'+pic+'.png'
    button background None action Hide('verfoto')
    
imagebutton auto "images/gui/galeria/thumbs/chloe-imagen-01_%s.png" action Show("verfoto", dissolve, "chloe-imagen-01")
But I dont know how to jump to a lable to see a complete scene... let say the ending, from my gallery page, I would like to "jump" to a label, so it would be something like this:

Code: Select all

screen vervideo(labelname):
    $ replayscene = True
    jump labelname

imagebutton auto "images/gui/galeria/thumbs/chloe-imagen-01_%s.png" action Show("vervideo", dissolve, "labelending")

Code: Select all

label labelending:
    scene black

	.... play somenthing ...
    
    if replayscene:
        $ replayscene = False
        return
        
    jump creditsandending
I would apreciate a lot the help with this :D

Re: Best way to jump to a label from the main menu?

Posted: Sat Oct 26, 2019 8:42 pm
by rayminator
do this use a jump or call just make sure the first letter are in capital's

Code: Select all

imagebutton auto "images/gui/galeria/thumbs/chloe-imagen-01_%s.png" action Jump("vervideo", dissolve, "labelending")

or 

imagebutton auto "images/gui/galeria/thumbs/chloe-imagen-01_%s.png" action Call("vervideo", dissolve, "labelending")

Re: Best way to jump to a label from the main menu?

Posted: Sun Oct 27, 2019 3:35 am
by xavimat

Re: Best way to jump to a label from the main menu?

Posted: Sun Oct 27, 2019 5:20 am
by isobellesophia
You can also use Jump() at any labels.