Sorry about this, but I've got a couple more questions that I just can't find answers for.
1. Is there a way to hide all the screens using a button? When I hit one of the buttons like "Listen" the textbox just appears overtop the menus. Can they be hidden when the button is clicked, and then shown again once the little bit of dialogue is over?
2. Can the buttons in these menus be made into textbuttons or imagebuttons, so that I can make hover and idle states? Specifically, I want to make the coloured background states like in the default choice menu.
3. Can the "res" action at the end of this decision tree respond by jumping instead of just returning a single dialogue? I want it to go through more than one textbox before looping back, but it looks like I can only "res" with one.
Here's the portion of the script, where I made an *attempt* to solve 1. and 3. by jumping. However, this just returned with an error, because jump isn't something that can be done as a response.
Code: Select all
$ at_checkpoint = True
$ day0map1 = [
{"place":"Place 1", "photo":"pl_1", "actions_list":
[
{"act_name":"Look around", "res":"It's Place 1 here."},
{"act_name":"Listen", "res":"It's quiet here."},
]
},
{"place":"Place 2", "photo":"pl_2", "actions_list":
[
{"act_name":"Look around", "res": jump gobbledegook },
{"act_name":"Listen", "res":"Hey, there's some music playing..."},
]
},
]
window hide
show screen location_list(day0map1)
label loop:
$ txt = ui.interact()
"[txt]"
jump loop
label gobbledegook:
hide screen location_list
hide screen sub_location_list
hide screen location_photo
"You look around and see Place 2 everywhere."
"It's unsettling how completely it surround you."
"and yet..."
"it's comforting."
show screen location_list
show screen sub_location_list
show screen location_photo
jump loop
return
Also, here's the bit of code at the end that codes for the button in question.
Code: Select all
vbox:
label "ACTION:"
if not renpy.get_screen("say"):
for a in actions:
button:
text a["act_name"]
action Return(a["res"])
Can I change the action to allow for jumping as a response (not just jumping as an action, because that was one of the original problems that was avoided) and can I make this into an imagebutton or textbutton?