Also, a disclaimer that I'm completely a noob when it comes to programming and ren'py. This explanation will be confusing and full of idiotic mistakes.
Anyways, I've been trying to make a mystery-type game where the player has to explore a house and find clues. I'm sure there's a way to do this, but I haven't found anything online yet, so I went to make something myself.
My basic idea was that every room would have arrows (text buttons for now) pointing to new 'areas' to explore. Right now, I'm using screens to create a menu of options for the player to choose. (I hope this isn't confusing!)
This is my code... (in the screens.rpy)
Code: Select all
screen living_1_options:
hbox:
xpos 650
ypos 410
textbutton "right" action Jump("living_2")
textbutton "piano" action Jump("living_piano")
textbutton "kitchen" action Jump("kitchen_1")
screen living_2_options:
fixed:
textbutton "stairs" xalign 0.33 yalign 0.5 action Jump("living_stairs")
textbutton "nook" xalign 0.33 yalign .75 action Jump("living_nook")
textbutton "left" xalign 0.33 yalign 1 action Jump("living_1")
screen living_stairs_options:
fixed:
textbutton "up" xalign 0.33 yalign 0.5 action Jump("hall_1")
textbutton "right" xalign 0.33 yalign .75 action Jump("living_2")
textbutton "left" xalign 0.33 yalign 1 action Jump("living_1")
screen hall_1_options:
fixed:
textbutton "down" xalign 0.33 yalign 0.5 action Jump("living_stairs")
That's how I did the menus, and then I implemented them like so... (in script.rpy)
Code: Select all
label living_1:
scene living_1 with fade
show screen living_1_options
label living_2:
scene living_2 with fade
show screen living_2_options
label living_stairs:
scene living_stairs with fade
show screen living_stairs_options