My goal is to have it appear with a pixelated transition. It would then pixelate out to show the selected character as they pixelate in.
I have a variable to hold which character is selected. I also have a label that holds all the characters' descriptions controlled by if else function.
My first problem is that if I do show screen, the script moves to the confirmation menu before the player can select a character. If I do it as a call screen, the transition don't work.
Second problem is that if I make the button just define the character that is selected. It doesn't show the description.
I've managed a workaround by making four different labels that hold the description and the code to set the selected character. But I would like to use one label if possible.
Here is the code. The commented sections are my old code for reference. I also removed anything irrelevant to the problems.
The Selection label
Code: Select all
label Selection:
scene AllSeer Expanded
with fade
call screen CharacterSelect with Digital
with Digital
# show Lu:
# xalign 0.2 yalign 1.0
# show Ka:
# xalign 0.4 yalign 1.0
# show Tom:
# xalign 0.6 yalign 1.0
# show Ro:
# xalign 0.8 yalign 1.0
# with Digital
#
# menu:
# narrator "Choose your Character:"
#
# "Luna":
# $ Playing = "Luna"
# "Kaat":
# $ Playing = "Kaat"
# "Thomas":
# $ Playing = "Tom"
# "Roxie":
# $ Playing = "Roxie"
# jump CharacterDes
Code: Select all
screen CharacterSelect:
label "Choose your Character" xalign 0.5
hbox:
yalign 0.70
xalign 0.5
imagebutton idle "images/Sprites/LunaBase.png" yalign 1.0 action Jump("LunaDes")
imagebutton idle "images/Sprites/KaatBase.png" yalign 1.0 action Jump("KaatDes")
imagebutton idle "images/Sprites/ThomasBase.png" yalign 1.0 action Jump("ThomasDes")
imagebutton idle "images/Sprites/RoxieBase.png" yalign 1.0 action Jump("RoxieDes")
return
Code: Select all
# label CharacterDes:
# scene AllSeer Expanded
#
# if Playing == "Luna":
# show Lu with Digital
# AS "Description text"
# AS "Do you want to choose her?"
# elif Playing == "Kaat":
# show Ka with Digital
# AS "Description text"
# AS "Do you want to choose her?"
# elif Playing == "Tom":
# show Tom with Digital
# AS "Description text"
# AS "Do you want to choose him?"
# elif Playing == "Roxie":
# show Ro with Digital
# AS "Description text"
# AS "Do you want to choose her?"
#
# jump SelectChar
Code: Select all
label LunaDes:
hide screen CharacterSelect with Digital
$ Playing = "Luna"
show Lu with Digital
AS "Description text"
AS "Do you want to choose her?"
jump SelectChar
label KaatDes:
hide screen CharacterSelect with Digital
$ Playing = "Kaat"
show Ka with Digital
AS "Description text"
AS "Do you want to choose her?"
jump SelectChar
label ThomasDes:
hide screen CharacterSelect with Digital
$ Playing = "Tom"
show Tom with Digital
AS "Description text"
AS "Do you want to choose him?"
jump SelectChar
label RoxieDes:
hide screen CharacterSelect with Digital
$ Playing = "Roxie"
show Ro with Digital
AS "Description text"
AS "Do you want to choose her?"
jump SelectChar