Code: Select all
screen location_map:
textbutton "room":
xalign 0.5
yalign 0.3
action [SetVariable("place","room"),Call("visit_place")]
textbutton "garden":
xalign 0.5
yalign 0.6
action [SetVariable("place","garden"),Call("visit_place"),Return()]
textbutton "Bus":
xalign 0.5
yalign 0.9
action [SetVariable("place","Darkness"),Call("visit_place"),Return(),NullAction()]
label visit_place:
$ k = "icon {}".format(place)
scene expression k
"You are in [place]"
menu:
"Meet People":
call event1
"Move to another place":
call screen location_map
return
label event1:
"Something happened"
return
Also, when I choose the option to "Move to another place" Why is it that when the three textbutton appears, the button that I selected previously is... whiter, as if renpy tried to track which button I pressed. What If i want to make the color of buttons the same.
Also what exactly does Return() do. What happen if I put expression in Return(arg)?
Really appreciate if somebody could help me gain some insight.